mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-10 23:32:06 +00:00
Fullscreen menu background fitting boo-boo.
This commit is contained in:
parent
ea167a0560
commit
a3abca6868
1 changed files with 4 additions and 3 deletions
|
@ -6620,14 +6620,15 @@ void Menu_Paint(menuDef_t * menu, qboolean forcePaint)
|
|||
|
||||
float tex[2];
|
||||
|
||||
if (sx > sy)
|
||||
if (sx >= sy)
|
||||
{
|
||||
tex[0] = 0.f;
|
||||
tex[1] = 0.5f * (sx - sy);
|
||||
tex[1] = 0.5f * (1.f - sy / sx);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
tex[0] = 0.5f * (sy - sx);
|
||||
tex[0] = 0.5f * (1.f - sx / sy);
|
||||
tex[1] = 0.f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue