Fixed some more

This commit is contained in:
Julie Marchant 2019-06-01 18:16:32 -04:00
parent 356a6472b4
commit a4760466fe
3 changed files with 7 additions and 7 deletions

View File

@ -1306,7 +1306,7 @@ int intermission()
shop_init(); shop_init();
intermission_setPlanets(); 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 *savesSurface = gfx_createSurface(350, 300);
SDL_Surface *optionsSurface = gfx_createSurface(320, 240); SDL_Surface *optionsSurface = gfx_createSurface(320, 240);
SDL_Surface *commsSurface = gfx_createSurface(450, 336); SDL_Surface *commsSurface = gfx_createSurface(450, 336);

View File

@ -48,7 +48,7 @@ int save_initSlots()
char fileName[PATH_MAX]; char fileName[PATH_MAX];
int system; int system;
char stationedName[255]; char stationedName[255];
int imagePos = screen->h / 3 + 50; int imagePos = 0;
Game tempGame; Game tempGame;
struct stat fileInfo; struct stat fileInfo;
int modTime = 0; int modTime = 0;
@ -90,7 +90,7 @@ int save_initSlots()
} }
if (engine.gameSection == SECTION_TITLE) 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); imagePos, FONT_WHITE);
if (stat(fileName, &fileInfo) != -1) if (stat(fileName, &fileInfo) != -1)
@ -111,7 +111,7 @@ int save_initSlots()
sprintf(saveSlot[i], (i == 0 ? "AUTOSAVE (Empty)" : "Empty")); sprintf(saveSlot[i], (i == 0 ? "AUTOSAVE (Empty)" : "Empty"));
if (engine.gameSection == SECTION_TITLE) if (engine.gameSection == SECTION_TITLE)
gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i], gfx_createTextObject(TS_SAVESLOT_0 + i, saveSlot[i],
-1, imagePos, FONT_WHITE); 0, imagePos, FONT_WHITE);
} }
else else
{ {
@ -134,7 +134,7 @@ int save_initSlots()
} }
if (engine.gameSection == SECTION_TITLE) 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); imagePos, FONT_WHITE);
if (stat(fileName, &fileInfo) != -1) if (stat(fileName, &fileInfo) != -1)

View File

@ -75,11 +75,11 @@ static int showLoadMenu()
rtn++; rtn++;
if (gfx_textSprites[i].image != NULL) 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; 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; return rtn;
} }