From 52c21118b99ecd4c136b27e0033734e3db509b4a Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Tue, 15 May 2018 20:22:09 +0300 Subject: [PATCH] Fix mouse capture in full window mode. --- od-win32/win32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index eb0ba3c5..f814c218 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -1115,7 +1115,7 @@ static void winuae_active(struct AmigaMonitor *mon, HWND hwnd, int minimized) getcapslock (); wait_keyrelease (); inputdevice_acquire (TRUE); - if (isfullscreen () != 0 && !gui_active) + if (isfullscreen () > 0 && !gui_active) setmouseactive(mon->monitor_id, 1); #ifdef LOGITECHLCD if (!minimized) @@ -2432,6 +2432,8 @@ static int canstretch(struct AmigaMonitor *mon) if (isfullscreen () != 0) return 0; if (!WIN32GFX_IsPicassoScreen(mon)) { + if (!currprefs.gfx_windowed_resize) + return 0; if (currprefs.gf[APMODE_NATIVE].gfx_filter_autoscale == AUTOSCALE_RESIZE) return 0; return 1; -- 2.47.3