mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Tweaked the check for stretch to fit of AVI movies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user