Tweaked the check for stretch to fit of AVI movies

This commit is contained in:
NovaRain
2024-05-06 23:38:23 +08:00
parent a66db5a386
commit 257a1f7b33
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ void Graphics::SetMovieTexture(bool state) {
subtitleShow = false;
} else if (aviAspect < winAspect) {
if (Graphics::AviMovieWidthFit || (hrpIsEnabled && GetIntHRPValue(HRP_VAR_MOVIE_SIZE) == 2)) {
if (Graphics::AviMovieWidthFit) {
//desc.Width = gWidth; // scales the movie surface to screen width
} else {
// scales width proportionally and places the movie surface at the center of the window along the X-axis
+4 -1
View File
@@ -568,7 +568,10 @@ static __declspec(naked) void LostFocus() {
bool Movies::DirectShowMovies() {
int allowDShowMovies = IniReader::GetConfigInt("Graphics", "AllowDShowMovies", 0);
if (allowDShowMovies > 0) {
Graphics::AviMovieWidthFit = (allowDShowMovies >= 2);
Graphics::AviMovieWidthFit = (
allowDShowMovies >= 2 ||
(hrpIsEnabled && IniReader::GetInt("MOVIES", "MOVIE_SIZE", 0, ".\\f2_res.ini") == 2)
);
MakeJump(0x44E690, gmovie_play_hack);
HookCall(0x44E993, gmovie_play_hook_stop);
/* NOTE: At this address 0x487781 (movieStart_), HRP by Mash changes the callback procedure to display mve frames. */