Fixed screen_adjustDimensions, plus updated some more blitTexts.

This commit is contained in:
Julie Marchant 2019-05-30 23:09:10 -04:00
parent d38c82ea69
commit 3369b6c5c1
2 changed files with 11 additions and 11 deletions

View File

@ -1374,13 +1374,13 @@ int intermission()
gfx_createTextObject(TS_INFO_EXIT, "Exit to Title Screen", -1, iconInfoY, FONT_WHITE); gfx_createTextObject(TS_INFO_EXIT, "Exit to Title Screen", -1, iconInfoY, FONT_WHITE);
sprintf(string, "Stationed At: %s", intermission_planets[game.stationedPlanet].name); sprintf(string, "Stationed At: %s", intermission_planets[game.stationedPlanet].name);
gfx_createTextObject(TS_CURRENT_PLANET, string, 90, screen->h - 120, FONT_WHITE); gfx_createTextObject(TS_CURRENT_PLANET, string, 90, 0, FONT_WHITE);
if (game.destinationPlanet > -1) if (game.destinationPlanet > -1)
sprintf(string, "Destination: %s", intermission_planets[game.destinationPlanet].name); sprintf(string, "Destination: %s", intermission_planets[game.destinationPlanet].name);
else else
strcpy(string, "Destination: None"); strcpy(string, "Destination: None");
gfx_createTextObject(TS_DEST_PLANET, string, screen->w - 250, screen->h - 120, FONT_WHITE); gfx_createTextObject(TS_DEST_PLANET, string, 0, 0, FONT_WHITE);
if (game.distanceCovered > 0) if (game.distanceCovered > 0)
section = 0; section = 0;
@ -1458,9 +1458,9 @@ int intermission()
distance = 1; distance = 1;
gfx_createTextObject(TS_CURRENT_PLANET, intermission_planets[game.stationedPlanet].name, gfx_createTextObject(TS_CURRENT_PLANET, intermission_planets[game.stationedPlanet].name,
135, screen->h - 120, FONT_WHITE); 135, 0, FONT_WHITE);
gfx_createTextObject(TS_DEST_PLANET, intermission_planets[game.destinationPlanet].name, gfx_createTextObject(TS_DEST_PLANET, intermission_planets[game.destinationPlanet].name,
screen->w - 165, screen->h - 120, FONT_WHITE); 85, 0, FONT_WHITE);
section = 8; section = 8;
@ -1488,12 +1488,12 @@ int intermission()
if (intermission_showSystem(orbit_pos, 1)) if (intermission_showSystem(orbit_pos, 1))
{ {
sprintf(string, "Destination: %s", intermission_planets[game.destinationPlanet].name); sprintf(string, "Destination: %s", intermission_planets[game.destinationPlanet].name);
gfx_createTextObject(TS_DEST_PLANET, string, screen->w - 250, screen->h - 120, FONT_WHITE); gfx_createTextObject(TS_DEST_PLANET, string, 0, 0, FONT_WHITE);
} }
screen_blitTextInPlace(TS_CURRENT_PLANET); screen_blitText(TS_CURRENT_PLANET, 0, screen->h - 120);
if (game.stationedPlanet != game.destinationPlanet) if (game.stationedPlanet != game.destinationPlanet)
screen_blitTextInPlace(TS_DEST_PLANET); screen_blitText(TS_DEST_PLANET, screen->w - 250, screen->h - 120);
break; break;
case 2: case 2:
@ -1534,9 +1534,9 @@ int intermission()
intermission_showSystem(orbit_pos, 0); intermission_showSystem(orbit_pos, 0);
screen_blit(intermission_planets[game.stationedPlanet].image, 150, screen->h - 90); screen_blit(intermission_planets[game.stationedPlanet].image, 150, screen->h - 90);
screen_blitTextInPlace(TS_CURRENT_PLANET); screen_blitText(TS_CURRENT_PLANET, 0, screen->h - 120);
screen_blit(intermission_planets[game.destinationPlanet].image, screen->w - 150, screen->h - 90); screen_blit(intermission_planets[game.destinationPlanet].image, screen->w - 150, screen->h - 90);
screen_blitTextInPlace(TS_DEST_PLANET); screen_blitText(TS_DEST_PLANET, screen->w - 250, screen->h - 120);
game.distanceCovered += distance * (screen->w - 350) / 450.; game.distanceCovered += distance * (screen->w - 350) / 450.;
destRect.w = (int)game.distanceCovered; destRect.w = (int)game.distanceCovered;
@ -1549,7 +1549,7 @@ int intermission()
player.shield = player.maxShield; player.shield = player.maxShield;
sprintf(string, "Stationed At: %s", sprintf(string, "Stationed At: %s",
intermission_planets[game.stationedPlanet].name); intermission_planets[game.stationedPlanet].name);
gfx_createTextObject(TS_CURRENT_PLANET, string, 90, screen->h - 120, FONT_WHITE); gfx_createTextObject(TS_CURRENT_PLANET, string, 90, 0, FONT_WHITE);
section = 1; section = 1;
redrawBackground = 1; redrawBackground = 1;
save(0); save(0);

View File

@ -169,8 +169,8 @@ void screen_adjustDimensions(int w, int h)
else else
{ {
// Tall screen // Tall screen
w = DEFAULT_SCREEN_WIDTH;
h = (DEFAULT_SCREEN_WIDTH * h) / w; h = (DEFAULT_SCREEN_WIDTH * h) / w;
w = DEFAULT_SCREEN_WIDTH;
} }
// Free previous surface (if it exists) // Free previous surface (if it exists)