mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
[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:
@@ -41,6 +41,10 @@ static void __fastcall SetMovieSize() {
|
||||
long aspectH = sHeight;
|
||||
long x = 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);
|
||||
|
||||
movieToSize.left = x;
|
||||
|
||||
@@ -40,6 +40,7 @@ static const char* ExtraLines[] = {
|
||||
"Timeslip",
|
||||
"",
|
||||
"@Contributors",
|
||||
"@(in chronological order)",
|
||||
"ravachol",
|
||||
"Noid",
|
||||
"Glovz",
|
||||
|
||||
+2
-2
@@ -25,6 +25,6 @@
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 3
|
||||
#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"
|
||||
|
||||
Reference in New Issue
Block a user