Fixed the build.

This commit is contained in:
Robbbert 2020-12-18 00:01:13 +11:00
parent 499c00e711
commit a6d4a3f9a1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();