forked from enlightenment/efl
fix the borderless_set function by removing the frame around the window
SVN revision: 40462
This commit is contained in:
parent
f53053c1ca
commit
90993a4272
|
@ -734,7 +734,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SetLastError(0);
|
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");
|
EINA_ERROR_PERR("SetWindowLongPtr() failed\n");
|
||||||
return;
|
return;
|
||||||
|
@ -747,7 +747,7 @@ ecore_win32_window_borderless_set(Ecore_Win32_Window *window,
|
||||||
EINA_ERROR_PERR("GetWindowRect() failed\n");
|
EINA_ERROR_PERR("GetWindowRect() failed\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
style |= WS_CAPTION;
|
style |= WS_CAPTION | WS_THICKFRAME;
|
||||||
if (!AdjustWindowRect (&rect, style, FALSE))
|
if (!AdjustWindowRect (&rect, style, FALSE))
|
||||||
{
|
{
|
||||||
EINA_ERROR_PERR("AdjustWindowRect() failed\n");
|
EINA_ERROR_PERR("AdjustWindowRect() failed\n");
|
||||||
|
|
Loading…
Reference in New Issue