forked from AuroraMiddleware/gtk
win32: Don't use API_CALL for SetWindowLong
This can return 0 without it being an error. Should fix the last issue with bug #142874
This commit is contained in:
parent
a1828e8b60
commit
2788efeb5e
@ -3184,9 +3184,9 @@ gdk_win32_window_set_opacity (GdkWindow *window,
|
||||
exstyle = GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE);
|
||||
|
||||
if (!(exstyle & WS_EX_LAYERED))
|
||||
API_CALL (SetWindowLong, (GDK_WINDOW_HWND (window),
|
||||
SetWindowLong (GDK_WINDOW_HWND (window),
|
||||
GWL_EXSTYLE,
|
||||
exstyle | WS_EX_LAYERED));
|
||||
exstyle | WS_EX_LAYERED);
|
||||
|
||||
setLayeredWindowAttributes =
|
||||
(PFN_SetLayeredWindowAttributes)GetProcAddress (GetModuleHandle ("user32.dll"), "SetLayeredWindowAttributes");
|
||||
|
Loading…
Reference in New Issue
Block a user