From a4760466fe67f732c199e069bed8ef997a67a774 Mon Sep 17 00:00:00 2001 From: Julie Marchant Date: Sat, 1 Jun 2019 18:16:32 -0400 Subject: [PATCH] Fixed some more --- src/intermission.c | 2 +- src/save.c | 8 ++++---- src/title.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/intermission.c b/src/intermission.c index 05b794f..52e434d 100644 --- a/src/intermission.c +++ b/src/intermission.c @@ -1306,7 +1306,7 @@ int intermission() shop_init(); intermission_setPlanets(); - SDL_Surface *statsSurface = gfx_createAlphaRect(screen->w * 7 / 8, screen->h - 200, 0x00, 0x00, 0x99); + SDL_Surface *statsSurface = gfx_createAlphaRect(DEFAULT_SCREEN_WIDTH * 7 / 8, DEFAULT_SCREEN_HEIGHT - 200, 0x00, 0x00, 0x99); SDL_Surface *savesSurface = gfx_createSurface(350, 300); SDL_Surface *optionsSurface = gfx_createSurface(320, 240); SDL_Surface *commsSurface = gfx_createSurface(450, 336); diff --git a/src/save.c b/src/save.c index 99ccdb2..c4679c2 100644 --- a/src/save.c +++ b/src/save.c @@ -48,7 +48,7 @@ int save_initSlots() char fileName[PATH_MAX]; int system; char stationedName[255]; - int imagePos = screen->h / 3 + 50; + int imagePos = 0; Game tempGame; struct stat fileInfo; int modTime = 0; @@ -90,7 +90,7 @@ int save_initSlots() } if (engine.gameSection == SECTION_TITLE) - gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], -1, + gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], 0, imagePos, FONT_WHITE); if (stat(fileName, &fileInfo) != -1) @@ -111,7 +111,7 @@ int save_initSlots() sprintf(saveSlot[i], (i == 0 ? "AUTOSAVE (Empty)" : "Empty")); if (engine.gameSection == SECTION_TITLE) gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], - -1, imagePos, FONT_WHITE); + 0, imagePos, FONT_WHITE); } else { @@ -134,7 +134,7 @@ int save_initSlots() } if (engine.gameSection == SECTION_TITLE) - gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], -1, + gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], 0, imagePos, FONT_WHITE); if (stat(fileName, &fileInfo) != -1) diff --git a/src/title.c b/src/title.c index f350578..87ae75f 100644 --- a/src/title.c +++ b/src/title.c @@ -75,11 +75,11 @@ static int showLoadMenu() rtn++; if (gfx_textSprites[i].image != NULL) { - screen_blitTextInPlace(i); + screen_blitText(i, -1, screen->h / 3 + 50); gfx_textSprites[TS_BACK_TO_MAIN_MENU].y = gfx_textSprites[i].y + 40; } } - screen_blitTextInPlace(TS_BACK_TO_MAIN_MENU); + screen_blitText(TS_BACK_TO_MAIN_MENU, -1, screen->h / 3 + 50); return rtn; }