mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 07:48:15 +00:00
Added flag to allow resizable window
This commit is contained in:
@@ -1485,7 +1485,12 @@ static void InitGraphicsDevice(int width, int height)
|
|||||||
|
|
||||||
glfwDefaultWindowHints(); // Set default windows hints
|
glfwDefaultWindowHints(); // Set default windows hints
|
||||||
|
|
||||||
glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); // Avoid window being resizable
|
if (configFlags & FLAG_RESIZABLE_WINDOW)
|
||||||
|
{
|
||||||
|
glfwWindowHint(GLFW_RESIZABLE, GL_TRUE); // Resizable window
|
||||||
|
}
|
||||||
|
else glfwWindowHint(GLFW_RESIZABLE, GL_FALSE); // Avoid window being resizable
|
||||||
|
|
||||||
//glfwWindowHint(GLFW_DECORATED, GL_TRUE); // Border and buttons on Window
|
//glfwWindowHint(GLFW_DECORATED, GL_TRUE); // Border and buttons on Window
|
||||||
//glfwWindowHint(GLFW_RED_BITS, 8); // Framebuffer red color component bits
|
//glfwWindowHint(GLFW_RED_BITS, 8); // Framebuffer red color component bits
|
||||||
//glfwWindowHint(GLFW_DEPTH_BITS, 16); // Depthbuffer bits (24 by default)
|
//glfwWindowHint(GLFW_DEPTH_BITS, 16); // Depthbuffer bits (24 by default)
|
||||||
|
11
src/raylib.h
11
src/raylib.h
@@ -101,11 +101,12 @@
|
|||||||
|
|
||||||
// raylib Config Flags
|
// raylib Config Flags
|
||||||
#define FLAG_FULLSCREEN_MODE 1
|
#define FLAG_FULLSCREEN_MODE 1
|
||||||
#define FLAG_SHOW_LOGO 2
|
#define FLAG_RESIZABLE_WINDOW 2
|
||||||
#define FLAG_SHOW_MOUSE_CURSOR 4
|
#define FLAG_SHOW_LOGO 4
|
||||||
#define FLAG_CENTERED_MODE 8
|
#define FLAG_SHOW_MOUSE_CURSOR 8
|
||||||
#define FLAG_MSAA_4X_HINT 16
|
#define FLAG_CENTERED_MODE 16
|
||||||
#define FLAG_VSYNC_HINT 32
|
#define FLAG_MSAA_4X_HINT 32
|
||||||
|
#define FLAG_VSYNC_HINT 64
|
||||||
|
|
||||||
// Keyboard Function Keys
|
// Keyboard Function Keys
|
||||||
#define KEY_SPACE 32
|
#define KEY_SPACE 32
|
||||||
|
Reference in New Issue
Block a user