aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2019-08-20 19:32:12 +0200
committerraysan5 <raysan5@gmail.com>2019-08-20 19:32:12 +0200
commitef3b01dffc964c04b83d08211ff133e22af6059b (patch)
treef32392654343806a08a6b35696bbabea47ee8901 /src
parent2f42b0ce857ff07ad8a9b50e1a2c24bf0d8bf3c1 (diff)
downloadraylib-ef3b01dffc964c04b83d08211ff133e22af6059b.tar.gz
raylib-ef3b01dffc964c04b83d08211ff133e22af6059b.zip
RPI: Corrected issue when creating 3d projection view
Diffstat (limited to 'src')
-rw-r--r--src/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index d4df605f..2e9bfb63 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2507,9 +2507,6 @@ static bool InitGraphicsDevice(int width, int height)
if (screenHeight <= 0) screenHeight = displayHeight;
#endif // PLATFORM_DESKTOP
- currentWidth = screenWidth;
- currentHeight = screenHeight;
-
#if defined(PLATFORM_WEB)
displayWidth = screenWidth;
displayHeight = screenHeight;
@@ -3040,6 +3037,9 @@ static bool InitGraphicsDevice(int width, int height)
// Setup default viewport
SetupViewport(fbWidth, fbHeight);
+ currentWidth = screenWidth;
+ currentHeight = screenHeight;
+
ClearBackground(RAYWHITE); // Default background color for raylib games :P
#if defined(PLATFORM_ANDROID)