[HRP] Fixed movie subtitles not showing up when setting MOVIE_SIZE=1

* happens with certain combinations of screen and movie aspect ratios.

Minor edit to Credits.cpp.
Updated version number.
This commit is contained in:
NovaRain
2022-04-11 09:56:35 +08:00
parent d3255277d7
commit e5f7d29a03
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -41,6 +41,10 @@ static void __fastcall SetMovieSize() {
long aspectH = sHeight; long aspectH = sHeight;
long x = 0; long x = 0;
long y = 0; long y = 0;
float movieAspect = (float)bW / (float)bH;
float marginHeight = (sHeight - (sWidth / movieAspect)) / 2;
if (marginHeight < subtitleHeight) aspectH -= subtitleHeight; // reserve space
Image::GetAspectSize(bW, bH, &x, &y, aspectW, aspectH); Image::GetAspectSize(bW, bH, &x, &y, aspectW, aspectH);
movieToSize.left = x; movieToSize.left = x;
+1
View File
@@ -40,6 +40,7 @@ static const char* ExtraLines[] = {
"Timeslip", "Timeslip",
"", "",
"@Contributors", "@Contributors",
"@(in chronological order)",
"ravachol", "ravachol",
"Noid", "Noid",
"Glovz", "Glovz",
+2 -2
View File
@@ -25,6 +25,6 @@
#define VERSION_MAJOR 4 #define VERSION_MAJOR 4
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_BUILD 4 #define VERSION_BUILD 4
#define VERSION_REV 0 #define VERSION_REV 1
#define VERSION_STRING "4.3.4" #define VERSION_STRING "4.3.4.1"