mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 10:28:28 +01:00
glfwSetWindowMaximizeCallback is added in 3.3
This commit is contained in:
parent
5400a4e18a
commit
6130428989
@ -135,11 +135,11 @@ int sdrpp_main() {
|
|||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
glfwSwapInterval(1); // Enable vsync
|
glfwSwapInterval(1); // Enable vsync
|
||||||
|
|
||||||
|
#if (GLFW_VERSION_MAJOR == 3) && (GLFW_VERSION_MINOR >= 3)
|
||||||
if (maximized) {
|
if (maximized) {
|
||||||
glfwMaximizeWindow(window);
|
glfwMaximizeWindow(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (GLFW_VERSION_MINOR == 3) && (GLFW_VERSION_MINOR >= 2)
|
|
||||||
glfwSetWindowMaximizeCallback(window, maximized_callback);
|
glfwSetWindowMaximizeCallback(window, maximized_callback);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user