mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-25 04:28:30 +00:00
Reordered one function
This commit is contained in:
@@ -2285,7 +2285,7 @@ int GetTouchPointCount(void)
|
|||||||
// Module Internal Functions Definition
|
// Module Internal Functions Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Platform-specific functions
|
// NOTE: Functions with a platform-specific implementation on rcore_<platform>.c
|
||||||
//static bool InitGraphicsDevice(int width, int height)
|
//static bool InitGraphicsDevice(int width, int height)
|
||||||
|
|
||||||
// Set viewport for a provided width and height
|
// Set viewport for a provided width and height
|
||||||
|
@@ -347,6 +347,12 @@ void ToggleFullscreen(void)
|
|||||||
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle borderless windowed mode
|
||||||
|
void ToggleBorderlessWindowed(void)
|
||||||
|
{
|
||||||
|
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
||||||
|
}
|
||||||
|
|
||||||
// Set window state: maximized, if resizable
|
// Set window state: maximized, if resizable
|
||||||
void MaximizeWindow(void)
|
void MaximizeWindow(void)
|
||||||
{
|
{
|
||||||
@@ -365,12 +371,6 @@ void RestoreWindow(void)
|
|||||||
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle borderless windowed mode
|
|
||||||
void ToggleBorderlessWindowed(void)
|
|
||||||
{
|
|
||||||
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window configuration state using flags
|
// Set window configuration state using flags
|
||||||
void SetWindowState(unsigned int flags)
|
void SetWindowState(unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@@ -380,35 +380,6 @@ void ToggleFullscreen(void)
|
|||||||
if (CORE.Window.flags & FLAG_VSYNC_HINT) glfwSwapInterval(1);
|
if (CORE.Window.flags & FLAG_VSYNC_HINT) glfwSwapInterval(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set window state: maximized, if resizable
|
|
||||||
void MaximizeWindow(void)
|
|
||||||
{
|
|
||||||
if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) == GLFW_TRUE)
|
|
||||||
{
|
|
||||||
glfwMaximizeWindow(platform.handle);
|
|
||||||
CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window state: minimized
|
|
||||||
void MinimizeWindow(void)
|
|
||||||
{
|
|
||||||
// NOTE: Following function launches callback that sets appropriate flag!
|
|
||||||
glfwIconifyWindow(platform.handle);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window state: not minimized/maximized
|
|
||||||
void RestoreWindow(void)
|
|
||||||
{
|
|
||||||
if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) == GLFW_TRUE)
|
|
||||||
{
|
|
||||||
// Restores the specified window if it was previously iconified (minimized) or maximized
|
|
||||||
glfwRestoreWindow(platform.handle);
|
|
||||||
CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED;
|
|
||||||
CORE.Window.flags &= ~FLAG_WINDOW_MAXIMIZED;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Toggle borderless windowed mode
|
// Toggle borderless windowed mode
|
||||||
void ToggleBorderlessWindowed(void)
|
void ToggleBorderlessWindowed(void)
|
||||||
{
|
{
|
||||||
@@ -484,6 +455,35 @@ void ToggleBorderlessWindowed(void)
|
|||||||
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
|
else TRACELOG(LOG_WARNING, "GLFW: Failed to find selected monitor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set window state: maximized, if resizable
|
||||||
|
void MaximizeWindow(void)
|
||||||
|
{
|
||||||
|
if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) == GLFW_TRUE)
|
||||||
|
{
|
||||||
|
glfwMaximizeWindow(platform.handle);
|
||||||
|
CORE.Window.flags |= FLAG_WINDOW_MAXIMIZED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set window state: minimized
|
||||||
|
void MinimizeWindow(void)
|
||||||
|
{
|
||||||
|
// NOTE: Following function launches callback that sets appropriate flag!
|
||||||
|
glfwIconifyWindow(platform.handle);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set window state: not minimized/maximized
|
||||||
|
void RestoreWindow(void)
|
||||||
|
{
|
||||||
|
if (glfwGetWindowAttrib(platform.handle, GLFW_RESIZABLE) == GLFW_TRUE)
|
||||||
|
{
|
||||||
|
// Restores the specified window if it was previously iconified (minimized) or maximized
|
||||||
|
glfwRestoreWindow(platform.handle);
|
||||||
|
CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED;
|
||||||
|
CORE.Window.flags &= ~FLAG_WINDOW_MAXIMIZED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Set window configuration state using flags
|
// Set window configuration state using flags
|
||||||
void SetWindowState(unsigned int flags)
|
void SetWindowState(unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@@ -448,6 +448,12 @@ void ToggleFullscreen(void)
|
|||||||
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle borderless windowed mode
|
||||||
|
void ToggleBorderlessWindowed(void)
|
||||||
|
{
|
||||||
|
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
||||||
|
}
|
||||||
|
|
||||||
// Set window state: maximized, if resizable
|
// Set window state: maximized, if resizable
|
||||||
void MaximizeWindow(void)
|
void MaximizeWindow(void)
|
||||||
{
|
{
|
||||||
@@ -466,12 +472,6 @@ void RestoreWindow(void)
|
|||||||
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle borderless windowed mode
|
|
||||||
void ToggleBorderlessWindowed(void)
|
|
||||||
{
|
|
||||||
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window configuration state using flags
|
// Set window configuration state using flags
|
||||||
void SetWindowState(unsigned int flags)
|
void SetWindowState(unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@@ -275,6 +275,12 @@ void ToggleFullscreen(void)
|
|||||||
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
TRACELOG(LOG_WARNING, "ToggleFullscreen() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle borderless windowed mode
|
||||||
|
void ToggleBorderlessWindowed(void)
|
||||||
|
{
|
||||||
|
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
||||||
|
}
|
||||||
|
|
||||||
// Set window state: maximized, if resizable
|
// Set window state: maximized, if resizable
|
||||||
void MaximizeWindow(void)
|
void MaximizeWindow(void)
|
||||||
{
|
{
|
||||||
@@ -293,12 +299,6 @@ void RestoreWindow(void)
|
|||||||
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle borderless windowed mode
|
|
||||||
void ToggleBorderlessWindowed(void)
|
|
||||||
{
|
|
||||||
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window configuration state using flags
|
// Set window configuration state using flags
|
||||||
void SetWindowState(unsigned int flags)
|
void SetWindowState(unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@@ -410,6 +410,12 @@ void ToggleFullscreen(void)
|
|||||||
CORE.Window.fullscreen = !CORE.Window.fullscreen; // Toggle fullscreen flag
|
CORE.Window.fullscreen = !CORE.Window.fullscreen; // Toggle fullscreen flag
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Toggle borderless windowed mode
|
||||||
|
void ToggleBorderlessWindowed(void)
|
||||||
|
{
|
||||||
|
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
||||||
|
}
|
||||||
|
|
||||||
// Set window state: maximized, if resizable
|
// Set window state: maximized, if resizable
|
||||||
void MaximizeWindow(void)
|
void MaximizeWindow(void)
|
||||||
{
|
{
|
||||||
@@ -428,12 +434,6 @@ void RestoreWindow(void)
|
|||||||
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
TRACELOG(LOG_WARNING, "RestoreWindow() not available on target platform");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle borderless windowed mode
|
|
||||||
void ToggleBorderlessWindowed(void)
|
|
||||||
{
|
|
||||||
TRACELOG(LOG_WARNING, "ToggleBorderlessWindowed() not available on target platform");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set window configuration state using flags
|
// Set window configuration state using flags
|
||||||
void SetWindowState(unsigned int flags)
|
void SetWindowState(unsigned int flags)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user