mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +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))
|
||||
return NULL;
|
||||
|
||||
return (GLFWwindow*) window;
|
||||
}
|
||||
|
||||
void glfwDefaultWindowHints(void) {
|
||||
|
@ -994,6 +994,8 @@ static GLFWbool attachNativeSurface(_GLFWwindow* window,
|
||||
window->wl.transparent = fbconfig->transparent;
|
||||
if (!window->wl.transparent)
|
||||
setContentAreaOpaque(window);
|
||||
|
||||
return GLFW_TRUE;
|
||||
}
|
||||
|
||||
static void setCursorImage(_GLFWwindow* window,
|
||||
|
Loading…
Reference in New Issue
Block a user