diff --git a/intro.c b/intro.c index 9cb54f6..87d3990 100644 --- a/intro.c +++ b/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(); } }