Browse Source

Changed tabs to spaces

- Fixed tabs used instead of 4 spaces
pull/650/head
ChrisDill 6 years ago
parent
commit
ed79d53e1a
2 changed files with 21 additions and 21 deletions
  1. +16
    -16
      src/core.c
  2. +5
    -5
      src/raylib.h

+ 16
- 16
src/core.c View File

@ -773,9 +773,9 @@ int GetScreenHeight(void)
// Get number of monitors
int GetMonitorCount(void)
{
int monitorCount;
glfwGetMonitors(&monitorCount);
return monitorCount;
int monitorCount;
glfwGetMonitors(&monitorCount);
return monitorCount;
}
// Get primary monitor width
@ -789,34 +789,34 @@ int GetMonitorWidth(void)
// Get primary monitor height
int GetMonitorHeight(void)
{
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
const GLFWvidmode * mode = glfwGetVideoMode(monitor);
return mode->height;
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
const GLFWvidmode * mode = glfwGetVideoMode(monitor);
return mode->height;
}
// Get primary montior physical width in millimetres
int GetMonitorPhysicalWidth(void)
{
int physicalWidth;
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
glfwGetMonitorPhysicalSize(monitor, &physicalWidth, NULL);
return physicalWidth;
int physicalWidth;
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
glfwGetMonitorPhysicalSize(monitor, &physicalWidth, NULL);
return physicalWidth;
}
// Get primary monitor physical height in millimetres
int GetMonitorPhysicalHeight(void)
{
int physicalHeight;
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
glfwGetMonitorPhysicalSize(monitor, NULL, &physicalHeight);
return physicalHeight;
int physicalHeight;
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
glfwGetMonitorPhysicalSize(monitor, NULL, &physicalHeight);
return physicalHeight;
}
// Get the human-readable, UTF-8 encoded name of the primary monitor
const char *GetMonitorName(void)
{
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
return glfwGetMonitorName(monitor);
GLFWmonitor *monitor = glfwGetPrimaryMonitor();
return glfwGetMonitorName(monitor);
}
// Show mouse cursor

+ 5
- 5
src/raylib.h View File

@ -814,11 +814,11 @@ RLAPI void SetWindowMinSize(int width, int height); // Set window
RLAPI void SetWindowSize(int width, int height); // Set window dimensions
RLAPI int GetScreenWidth(void); // Get current screen width
RLAPI int GetScreenHeight(void); // Get current screen height
RLAPI int GetMonitorCount(void); // Get number of connected monitors
RLAPI int GetMonitorWidth(void); // Get primary monitor width
RLAPI int GetMonitorHeight(void); // Get primary monitor height
RLAPI int GetMonitorPhysicalWidth(void); // Get primary monitor physical width in millimetres
RLAPI int GetMonitorPhysicalHeight(void); // Get primary monitor physical height in millimetres
RLAPI int GetMonitorCount(void); // Get number of connected monitors
RLAPI int GetMonitorWidth(void); // Get primary monitor width
RLAPI int GetMonitorHeight(void); // Get primary monitor height
RLAPI int GetMonitorPhysicalWidth(void); // Get primary monitor physical width 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
// Cursor-related functions

Loading…
Cancel
Save