fix the borderless_set function by removing the frame around the window

SVN revision: 40462
This commit is contained in:
Vincent Torri 2009-04-29 17:50:44 +00:00
parent f53053c1ca
commit 90993a4272
1 changed files with 2 additions and 2 deletions

View File

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