Skip to content

Commit 5eb4136

Browse files
committed
fix mission name text on heli screen position
fix cast warning
1 parent 47770dd commit 5eb4136

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/PC/Graphics_PC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ void cGraphics_PC::Mission_Intro_Play( const bool pShowHelicopter, const eTileTy
993993
HeliIntro_TickParallaxAndText();
994994

995995
mFodder->String_Print(mFont_Underlined_Width, 1, -332 + (topTextPos + (Heli_TextPos)), 0x01, pTop);
996-
mFodder->String_Print(mFont_Underlined_Width, 1, (Heli_TextPosBottom)+bottomTextPos, 0xB5 + 0x16, pBottom);
996+
mFodder->String_Print(mFont_Underlined_Width, 1, (Heli_TextPosBottom)+bottomTextPos, 0xB5, pBottom);
997997

998998
// Clouds
999999
mMission_Intro_DrawX = pPositions[0].mX;

Source/Window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void cWindow::RenderAt( cSurface* pImage ) {
380380
}
381381
else {
382382
SDL_GetWindowSize(mWindow, NULL, &Dest.h);
383-
Dest.w = Dest.h*(float)(4.0/3.0);
383+
Dest.w = (int) (Dest.h*(float)(4.0/3.0));
384384
}
385385

386386
if (mWindowMode) {

0 commit comments

Comments
 (0)