Added function to set window minimum dimensions...
useful when using FLAG_WINDOW_RESIZABLE.
This commit is contained in:
parent
db0cfa935f
commit
e197665e1d
2 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -667,6 +667,7 @@ RLAPI void ToggleFullscreen(void); // Fullscreen
|
|||
RLAPI void SetWindowIcon(Image image); // Set icon for window (only PLATFORM_DESKTOP)
|
||||
RLAPI void SetWindowPosition(int x, int y); // Set window position on screen (only PLATFORM_DESKTOP)
|
||||
RLAPI void SetWindowMonitor(int monitor); // Set monitor for the current window (fullscreen mode)
|
||||
RLAPI void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)
|
||||
RLAPI int GetScreenWidth(void); // Get current screen width
|
||||
RLAPI int GetScreenHeight(void); // Get current screen height
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue