mirror of
https://github.com/glfw/glfw.git
synced 2025-06-07 16:24:57 +00:00
ZDLM-234 ZDLicenseTool: When opened for the first time, the app borders are not visible
This commit is contained in:
parent
3e273ac26b
commit
6f2beb147f
@ -1374,6 +1374,10 @@ static int createNativeWindow(_GLFWwindow* window,
|
|||||||
int frameX, frameY, frameWidth, frameHeight;
|
int frameX, frameY, frameWidth, frameHeight;
|
||||||
WCHAR* wideTitle;
|
WCHAR* wideTitle;
|
||||||
DWORD style = getWindowStyle(window);
|
DWORD style = getWindowStyle(window);
|
||||||
|
#ifdef ZD_GLFW_FORK
|
||||||
|
if (! window->decorated)
|
||||||
|
style = aero_borderless;
|
||||||
|
#endif
|
||||||
DWORD exStyle = getWindowExStyle(window);
|
DWORD exStyle = getWindowExStyle(window);
|
||||||
|
|
||||||
if (!_glfw.win32.mainWindowClass)
|
if (!_glfw.win32.mainWindowClass)
|
||||||
@ -1454,11 +1458,7 @@ static int createNativeWindow(_GLFWwindow* window,
|
|||||||
window->win32.handle = CreateWindowExW(exStyle,
|
window->win32.handle = CreateWindowExW(exStyle,
|
||||||
MAKEINTATOM(_glfw.win32.mainWindowClass),
|
MAKEINTATOM(_glfw.win32.mainWindowClass),
|
||||||
wideTitle,
|
wideTitle,
|
||||||
#ifdef ZD_GLFW_FORK
|
|
||||||
window->decorated ? style : aero_borderless,
|
|
||||||
#else
|
|
||||||
style,
|
style,
|
||||||
#endif
|
|
||||||
frameX, frameY,
|
frameX, frameY,
|
||||||
frameWidth, frameHeight,
|
frameWidth, frameHeight,
|
||||||
NULL, // No parent window
|
NULL, // No parent window
|
||||||
|
Loading…
Reference in New Issue
Block a user