mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-13 14:58:15 +00:00
Changed tabs to spaces
- Fixed tabs used instead of 4 spaces
This commit is contained in:
32
src/core.c
32
src/core.c
@@ -773,9 +773,9 @@ int GetScreenHeight(void)
|
|||||||
// Get number of monitors
|
// Get number of monitors
|
||||||
int GetMonitorCount(void)
|
int GetMonitorCount(void)
|
||||||
{
|
{
|
||||||
int monitorCount;
|
int monitorCount;
|
||||||
glfwGetMonitors(&monitorCount);
|
glfwGetMonitors(&monitorCount);
|
||||||
return monitorCount;
|
return monitorCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get primary monitor width
|
// Get primary monitor width
|
||||||
@@ -789,34 +789,34 @@ int GetMonitorWidth(void)
|
|||||||
// Get primary monitor height
|
// Get primary monitor height
|
||||||
int GetMonitorHeight(void)
|
int GetMonitorHeight(void)
|
||||||
{
|
{
|
||||||
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
||||||
const GLFWvidmode * mode = glfwGetVideoMode(monitor);
|
const GLFWvidmode * mode = glfwGetVideoMode(monitor);
|
||||||
return mode->height;
|
return mode->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get primary montior physical width in millimetres
|
// Get primary montior physical width in millimetres
|
||||||
int GetMonitorPhysicalWidth(void)
|
int GetMonitorPhysicalWidth(void)
|
||||||
{
|
{
|
||||||
int physicalWidth;
|
int physicalWidth;
|
||||||
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
||||||
glfwGetMonitorPhysicalSize(monitor, &physicalWidth, NULL);
|
glfwGetMonitorPhysicalSize(monitor, &physicalWidth, NULL);
|
||||||
return physicalWidth;
|
return physicalWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get primary monitor physical height in millimetres
|
// Get primary monitor physical height in millimetres
|
||||||
int GetMonitorPhysicalHeight(void)
|
int GetMonitorPhysicalHeight(void)
|
||||||
{
|
{
|
||||||
int physicalHeight;
|
int physicalHeight;
|
||||||
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
||||||
glfwGetMonitorPhysicalSize(monitor, NULL, &physicalHeight);
|
glfwGetMonitorPhysicalSize(monitor, NULL, &physicalHeight);
|
||||||
return physicalHeight;
|
return physicalHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the human-readable, UTF-8 encoded name of the primary monitor
|
// Get the human-readable, UTF-8 encoded name of the primary monitor
|
||||||
const char *GetMonitorName(void)
|
const char *GetMonitorName(void)
|
||||||
{
|
{
|
||||||
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
|
||||||
return glfwGetMonitorName(monitor);
|
return glfwGetMonitorName(monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show mouse cursor
|
// Show mouse cursor
|
||||||
|
10
src/raylib.h
10
src/raylib.h
@@ -814,11 +814,11 @@ RLAPI void SetWindowMinSize(int width, int height); // Set window
|
|||||||
RLAPI void SetWindowSize(int width, int height); // Set window dimensions
|
RLAPI void SetWindowSize(int width, int height); // Set window dimensions
|
||||||
RLAPI int GetScreenWidth(void); // Get current screen width
|
RLAPI int GetScreenWidth(void); // Get current screen width
|
||||||
RLAPI int GetScreenHeight(void); // Get current screen height
|
RLAPI int GetScreenHeight(void); // Get current screen height
|
||||||
RLAPI int GetMonitorCount(void); // Get number of connected monitors
|
RLAPI int GetMonitorCount(void); // Get number of connected monitors
|
||||||
RLAPI int GetMonitorWidth(void); // Get primary monitor width
|
RLAPI int GetMonitorWidth(void); // Get primary monitor width
|
||||||
RLAPI int GetMonitorHeight(void); // Get primary monitor height
|
RLAPI int GetMonitorHeight(void); // Get primary monitor height
|
||||||
RLAPI int GetMonitorPhysicalWidth(void); // Get primary monitor physical width in millimetres
|
RLAPI int GetMonitorPhysicalWidth(void); // Get primary monitor physical width in millimetres
|
||||||
RLAPI int GetMonitorPhysicalHeight(void); // Get primary monitor physical height in millimetres
|
RLAPI int GetMonitorPhysicalHeight(void); // Get primary monitor physical height in millimetres
|
||||||
RLAPI const char *GetMonitorName(void); // Get the human-readable, UTF-8 encoded name of the primary monitor
|
RLAPI const char *GetMonitorName(void); // Get the human-readable, UTF-8 encoded name of the primary monitor
|
||||||
|
|
||||||
// Cursor-related functions
|
// Cursor-related functions
|
||||||
|
Reference in New Issue
Block a user