mirror of
https://github.com/glfw/glfw.git
synced 2025-02-17 06:00:39 +00:00
fix a couple of warnings
This commit is contained in:
parent
ab9cf8ba08
commit
d0b91e22f4
@ -297,6 +297,8 @@ GLFWAPI GLFWwindow* glfwAttachWindow(intptr_t nativeWindow, GLFWwindow* share) {
|
|||||||
|
|
||||||
if (!_glfw.platform.attachWindow(window, nativeWindow, &wndconfig, &ctxconfig, &fbconfig))
|
if (!_glfw.platform.attachWindow(window, nativeWindow, &wndconfig, &ctxconfig, &fbconfig))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
return (GLFWwindow*) window;
|
||||||
}
|
}
|
||||||
|
|
||||||
void glfwDefaultWindowHints(void) {
|
void glfwDefaultWindowHints(void) {
|
||||||
|
@ -994,6 +994,8 @@ static GLFWbool attachNativeSurface(_GLFWwindow* window,
|
|||||||
window->wl.transparent = fbconfig->transparent;
|
window->wl.transparent = fbconfig->transparent;
|
||||||
if (!window->wl.transparent)
|
if (!window->wl.transparent)
|
||||||
setContentAreaOpaque(window);
|
setContentAreaOpaque(window);
|
||||||
|
|
||||||
|
return GLFW_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setCursorImage(_GLFWwindow* window,
|
static void setCursorImage(_GLFWwindow* window,
|
||||||
|
Loading…
Reference in New Issue
Block a user