Fix rendering issue on Mac (fake operating system)
This commit is contained in:
parent
02e2919035
commit
218074d204
8
intro.c
8
intro.c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user