mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Use C89 var declaration in glfwGetSystemDefaultTheme, init.c
This commit is contained in:
parent
5805c51eab
commit
9889f26b0f
@ -545,9 +545,10 @@ GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
|
||||
|
||||
GLFWAPI GLFWtheme* glfwGetSystemDefaultTheme()
|
||||
{
|
||||
_GLFWtheme* theme;
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(NULL);
|
||||
|
||||
_GLFWtheme* theme = _glfw.platform.getSystemDefaultTheme();
|
||||
theme = _glfw.platform.getSystemDefaultTheme();
|
||||
assert(theme->variation != GLFW_THEME_DEFAULT);
|
||||
|
||||
return (GLFWtheme*) theme;
|
||||
|
Loading…
Reference in New Issue
Block a user