mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Fixed the build.
This commit is contained in:
parent
499c00e711
commit
a6d4a3f9a1
@ -111,7 +111,7 @@ public:
|
||||
if (target != nullptr)
|
||||
return target->keepaspect();
|
||||
else
|
||||
return machine().options().keep_aspect();
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual osd_dim get_size() = 0;
|
||||
|
@ -1309,7 +1309,7 @@ LRESULT CALLBACK win_window_info::video_window_proc(HWND wnd, UINT message, WPAR
|
||||
case WM_SIZING:
|
||||
{
|
||||
RECT *rect = (RECT *)lparam;
|
||||
if (keepaspect() && !(GetAsyncKeyState(VK_CONTROL) & 0x8000))
|
||||
if (window->keepaspect() && !(GetAsyncKeyState(VK_CONTROL) & 0x8000))
|
||||
{
|
||||
osd_rect r = window->constrain_to_aspect_ratio(RECT_to_osd_rect(*rect), wparam);
|
||||
rect->top = r.top();
|
||||
|
Loading…
Reference in New Issue
Block a user