mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- fixed misnamed variable and removed restriction for draw pass in GetFullscreenRect.
This commit is contained in:
parent
9a994482b1
commit
756caede51
2 changed files with 2 additions and 4 deletions
|
@ -417,8 +417,6 @@ DEFINE_ACTION_FUNCTION(_Screen, GetFullscreenRect)
|
|||
PARAM_FLOAT(virth);
|
||||
PARAM_INT(fsmode);
|
||||
|
||||
if (!twod->HasBegun2D()) ThrowAbortException(X_OTHER, "Attempt to draw to screen outside a draw function");
|
||||
|
||||
DrawParms parms;
|
||||
DoubleRect rect;
|
||||
parms.viewport.width = twod->GetWidth();
|
||||
|
|
|
@ -191,7 +191,7 @@ class ListMenu : Menu
|
|||
{
|
||||
int sel = -1;
|
||||
|
||||
int w = desc.DisplayWidth();
|
||||
int w = mDesc.DisplayWidth();
|
||||
double sx, sy;
|
||||
if (w == ListMenuDescriptor.CleanScale)
|
||||
{
|
||||
|
@ -202,7 +202,7 @@ class ListMenu : Menu
|
|||
else
|
||||
{
|
||||
// for fullscreen scale, transform coordinates so that for the given rect the coordinates are within (0, 0, w, h)
|
||||
int h = desc.DisplayHeight();
|
||||
int h = mDesc.DisplayHeight();
|
||||
double fx, fy, fw, fh;
|
||||
[fx, fy, fw, fh] = Screen.GetFullscreenRect(w, h, FSMode_ScaleToFit43);
|
||||
|
||||
|
|
Loading…
Reference in a new issue