summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorvictorfisac <[email protected]>2016-07-18 14:08:34 +0200
committervictorfisac <[email protected]>2016-07-18 14:08:34 +0200
commit7a09043cba1b7d0d59587f82cb0627c965d557b9 (patch)
tree3096a90205a78fb3bb3d28faca2e101cdf479a52 /src/core.c
parent9fea631bfbe3d24565d100b55bbb0c43ae737374 (diff)
parentf5f3b4e095d89cb196f9156ed8fe7da95d697267 (diff)
downloadraylib-7a09043cba1b7d0d59587f82cb0627c965d557b9.tar.gz
raylib-7a09043cba1b7d0d59587f82cb0627c965d557b9.zip
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core.c b/src/core.c
index 107fc0a0..a3253d79 100644
--- a/src/core.c
+++ b/src/core.c
@@ -181,11 +181,10 @@ static uint64_t baseTime; // Base time measure for hi-res timer
static bool windowShouldClose = false; // Flag to set window for closing
#endif
-static unsigned int displayWidth, displayHeight; // Display width and height (monitor, device-screen, LCD, ...)
+// Display size-related data
+static unsigned int displayWidth, displayHeight; // Display width and height (monitor, device-screen, LCD, ...)
static int screenWidth, screenHeight; // Screen width and height (used render area)
-static int renderWidth, renderHeight; // Framebuffer width and height (render area)
- // NOTE: Framebuffer could include black bars
-
+static int renderWidth, renderHeight; // Framebuffer width and height (render area, including black bars if required)
static int renderOffsetX = 0; // Offset X from render area (must be divided by 2)
static int renderOffsetY = 0; // Offset Y from render area (must be divided by 2)
static bool fullscreen = false; // Fullscreen mode (useful only for PLATFORM_DESKTOP)
@@ -214,7 +213,7 @@ static bool cursorHidden; // Track if cursor is hidden
#endif
static Vector2 mousePosition; // Mouse position on screen
-static Vector2 touchPosition[MAX_TOUCH_POINTS]; // Touch position on screen
+static Vector2 touchPosition[MAX_TOUCH_POINTS]; // Touch position on screen
#if defined(PLATFORM_DESKTOP)
static char **dropFilesPath; // Store dropped files paths as strings
@@ -226,7 +225,7 @@ static double updateTime, drawTime; // Time measures for update and draw
static double frameTime; // Time measure for one frame
static double targetTime = 0.0; // Desired time for one frame, if 0 not applied
-static char configFlags = 0; // Configuration flags (bit based)
+static char configFlags = 0; // Configuration flags (bit based)
static bool showLogo = false; // Track if showing logo at init is enabled
//----------------------------------------------------------------------------------