mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-08 12:28:15 +00:00
RPI: Corrected issue when creating 3d projection view
This commit is contained in:
@@ -2507,9 +2507,6 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
if (screenHeight <= 0) screenHeight = displayHeight;
|
if (screenHeight <= 0) screenHeight = displayHeight;
|
||||||
#endif // PLATFORM_DESKTOP
|
#endif // PLATFORM_DESKTOP
|
||||||
|
|
||||||
currentWidth = screenWidth;
|
|
||||||
currentHeight = screenHeight;
|
|
||||||
|
|
||||||
#if defined(PLATFORM_WEB)
|
#if defined(PLATFORM_WEB)
|
||||||
displayWidth = screenWidth;
|
displayWidth = screenWidth;
|
||||||
displayHeight = screenHeight;
|
displayHeight = screenHeight;
|
||||||
@@ -3040,6 +3037,9 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
// Setup default viewport
|
// Setup default viewport
|
||||||
SetupViewport(fbWidth, fbHeight);
|
SetupViewport(fbWidth, fbHeight);
|
||||||
|
|
||||||
|
currentWidth = screenWidth;
|
||||||
|
currentHeight = screenHeight;
|
||||||
|
|
||||||
ClearBackground(RAYWHITE); // Default background color for raylib games :P
|
ClearBackground(RAYWHITE); // Default background color for raylib games :P
|
||||||
|
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
|
Reference in New Issue
Block a user