Fix rendering issue on Mac (fake operating system)

This commit is contained in:
Bill Rossi 2025-02-27 15:33:30 -05:00
parent 02e2919035
commit 218074d204

View File

@ -56,12 +56,12 @@ void intro_display(Intro *intro) {
alpha = 0;
BeginDrawing();
DrawRectangle(0, 0, GetRenderWidth(), GetRenderHeight(), (Color) { 34, 32, 52, 255 });
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), (Color) { 34, 32, 52, 255 });
DrawTexture(intro->textures[i],
GetRenderWidth() / 2 - intro->textures->width / 2,
GetRenderHeight() / 2 - intro->textures->height / 2,
(GetScreenWidth() / 2) - (intro->textures->width / 2),
(GetScreenHeight() / 2) - (intro->textures->height / 2),
WHITE);
DrawRectangle(0, 0, GetRenderWidth(), GetRenderHeight(), (Color) { 0, 0, 0, alpha });
DrawRectangle(0, 0, GetScreenWidth(), GetScreenHeight(), (Color) { 0, 0, 0, alpha });
EndDrawing();
}
}