From 90993a427256c8a7043c808a06056b7083116119 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 29 Apr 2009 17:50:44 +0000 Subject: [PATCH] fix the borderless_set function by removing the frame around the window SVN revision: 40462 --- legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c index 53138f5532..df1482d373 100644 --- a/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c +++ b/legacy/ecore/src/lib/ecore_win32/ecore_win32_window.c @@ -734,7 +734,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window, return; } SetLastError(0); - if (!SetWindowLongPtr(w, GWL_STYLE, style & ~WS_CAPTION) && (GetLastError() != 0)) + if (!SetWindowLongPtr(w, GWL_STYLE, style & ~(WS_CAPTION | WS_THICKFRAME)) && (GetLastError() != 0)) { EINA_ERROR_PERR("SetWindowLongPtr() failed\n"); return; @@ -747,7 +747,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window, EINA_ERROR_PERR("GetWindowRect() failed\n"); return; } - style |= WS_CAPTION; + style |= WS_CAPTION | WS_THICKFRAME; if (!AdjustWindowRect (&rect, style, FALSE)) { EINA_ERROR_PERR("AdjustWindowRect() failed\n");