mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fixed an issue when the user is resizing the window while in 4:3 mode.
This commit is contained in:
parent
455310da1c
commit
fb108abab7
|
@ -97,11 +97,16 @@ extern "C"
|
||||||
void gfx_resize(long width, long height)
|
void gfx_resize(long width, long height)
|
||||||
{
|
{
|
||||||
g_originalWidth = width;
|
g_originalWidth = width;
|
||||||
g_width = width;
|
|
||||||
|
if (config.frameBufferEmulation.aspect == 1)//Running in 4:3 mode?
|
||||||
|
g_width = (height*4)/3;
|
||||||
|
else
|
||||||
|
g_width = width;
|
||||||
g_height = height;
|
g_height = height;
|
||||||
config.video.windowedWidth = g_width;
|
|
||||||
config.video.windowedHeight = g_height;
|
config.video.windowedWidth = width;
|
||||||
dwnd().setWindowSize(g_width, g_height);
|
config.video.windowedHeight = height;
|
||||||
|
dwnd().setWindowSize(width, height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user