Skip to content

Commit

Permalink
Finale tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Nov 11, 2023
1 parent bd06b5f commit bf83e35
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions source_files/edge/f_finale.cc
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,26 @@ void F_Drawer(void)
}
}
}
// If not a movie, still draw the last finale pic until the finale stage bumps
else if (epi::PATH_GetExtension(finale->pics[finale->pics.size()-1]).empty())
{
const image_c *image = W_ImageLookup(finale->pics[finale->pics.size()-1].c_str());
if (r_titlescaling.d == 2) // Stretch
HUD_StretchImage(hud_x_left, 0, hud_x_right - hud_x_left, 200, image, 0, 0);
else
{
if (r_titlescaling.d == 3) // Fill Border
{
if ((float)image->actual_w / image->actual_h < (float)SCREENWIDTH / SCREENHEIGHT)
{
if (!image->blurred_version)
W_ImageStoreBlurred(image, 0.75f);
HUD_StretchImage(-320, -200, 960, 600, image->blurred_version, 0, 0);
}
}
HUD_DrawImageTitleWS(image);
}
}
}
break;

Expand Down

0 comments on commit bf83e35

Please sign in to comment.