mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +00:00
- fix a /0 crash in intermission text
This commit is contained in:
parent
cce03d1f34
commit
15ebc84017
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ void DIntermissionScreenText::Drawer ()
|
||||||
// line feed characters.
|
// line feed characters.
|
||||||
int numrows;
|
int numrows;
|
||||||
auto font = generic_ui ? NewSmallFont : SmallFont;
|
auto font = generic_ui ? NewSmallFont : SmallFont;
|
||||||
auto fontscale = generic_ui ? MIN(screen->GetWidth()/640, screen->GetHeight()/400) : MIN(screen->GetWidth()/400, screen->GetHeight() / 250);
|
auto fontscale = MAX(generic_ui ? MIN(screen->GetWidth() / 640, screen->GetHeight() / 400) : MIN(screen->GetWidth() / 400, screen->GetHeight() / 250), 1);
|
||||||
int cleanwidth = screen->GetWidth() / fontscale;
|
int cleanwidth = screen->GetWidth() / fontscale;
|
||||||
int cleanheight = screen->GetHeight() / fontscale;
|
int cleanheight = screen->GetHeight() / fontscale;
|
||||||
int refwidth = generic_ui ? 640 : 320;
|
int refwidth = generic_ui ? 640 : 320;
|
||||||
|
|
Loading…
Reference in a new issue