mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- fixed text input menu and y-positioning of option menus.
This commit is contained in:
parent
bddcde73f4
commit
b6862cfd70
3 changed files with 22 additions and 12 deletions
|
@ -74,6 +74,11 @@ void DrawOptionText(int x, int y, int color, const char *text, bool grayed)
|
|||
DrawText (twod, OptionFont(), color, x, y, text, DTA_CleanNoMove_1, true, DTA_ColorOverlay, overlay, TAG_END);
|
||||
}
|
||||
|
||||
int DOptionMenu::GetPosition()
|
||||
{
|
||||
return mDesc->mPosition * screen->GetHeight() / 1080; // y position uses a 1920x1080 screen as reference but has to adjust to scaled 320x200 content.
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//
|
||||
//
|
||||
|
@ -210,7 +215,7 @@ bool DOptionMenu::MenuEvent (int mkey, bool fromcontroller)
|
|||
if (mDesc->mSelectedItem < 0)
|
||||
{
|
||||
// Figure out how many lines of text fit on the menu
|
||||
int y = mDesc->mPosition;
|
||||
int y = GetPosition();
|
||||
|
||||
y *= CleanYfac_1;
|
||||
int rowheight = OptionSettings.mLinespacing * CleanYfac_1;
|
||||
|
@ -394,7 +399,7 @@ int DOptionMenu::GetIndent()
|
|||
|
||||
void DOptionMenu::Drawer ()
|
||||
{
|
||||
int y = mDesc->mPosition;
|
||||
int y = GetPosition();
|
||||
|
||||
if (mDesc->mTitle.IsNotEmpty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue