mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 23:38:15 +00:00
Added function to set window minimum dimensions...
useful when using FLAG_WINDOW_RESIZABLE.
This commit is contained in:
@@ -629,6 +629,15 @@ void SetWindowMonitor(int monitor)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
|
||||
void SetWindowMinSize(int width, int height)
|
||||
{
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
const GLFWvidmode *mode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
||||
glfwSetWindowSizeLimits(window, width, height, mode->width, mode->height);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Get current screen width
|
||||
int GetScreenWidth(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user