From 907657f63b9f706fff74794e9e77886d6371b02c Mon Sep 17 00:00:00 2001 From: nitsuja Date: Sat, 7 Nov 2009 19:16:48 +0000 Subject: [PATCH] disable border drag gap editing when in a gapless layout --- desmume/src/windows/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index a10300a42..cf91664a5 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -3693,13 +3693,13 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM minY = video.rotatedheightgap() / 2; } - if(verticalDrag && !sideways && SeparationBorderDrag) + if(verticalDrag && !sideways && SeparationBorderDrag && video.layout == 0) { forceRatioFlags |= WINCLASS::KEEPX; minY = (MainScreenRect.bottom - MainScreenRect.top) + (SubScreenRect.bottom - SubScreenRect.top); setGap = true; } - else if(horizontalDrag && sideways && SeparationBorderDrag) + else if(horizontalDrag && sideways && SeparationBorderDrag && video.layout == 0) { forceRatioFlags |= WINCLASS::KEEPY; minX = (MainScreenRect.right - MainScreenRect.left) + (SubScreenRect.right - SubScreenRect.left);