mirror of https://github.com/snes9xgit/snes9x.git
Round window width.
This commit is contained in:
parent
427ef85bd3
commit
df8ad8104a
|
@ -2030,7 +2030,7 @@ void
|
||||||
Snes9xWindow::resize_to_multiple (int factor)
|
Snes9xWindow::resize_to_multiple (int factor)
|
||||||
{
|
{
|
||||||
int h = (config->overscan ? 239 : 224) * factor;
|
int h = (config->overscan ? 239 : 224) * factor;
|
||||||
int w = h * S9xGetAspect ();
|
int w = h * S9xGetAspect () + 0.5;
|
||||||
|
|
||||||
resize_viewport (w, h);
|
resize_viewport (w, h);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue