Added function to set window minimum dimensions...

useful when using FLAG_WINDOW_RESIZABLE.
This commit is contained in:
victorfisac 2017-05-02 15:04:32 +02:00
parent db0cfa935f
commit e197665e1d
2 changed files with 10 additions and 0 deletions

View file

@ -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)
{