From a37415fd9076622d0a08a1cb6ef8f4ebb763d18d Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Tue, 28 Feb 2023 13:14:35 +0300 Subject: [PATCH] Fix movie subtitles not being rendered See #36 --- src/int/movie.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/int/movie.cc b/src/int/movie.cc index 3814669..6f7abf0 100644 --- a/src/int/movie.cc +++ b/src/int/movie.cc @@ -282,8 +282,8 @@ static void movie_MVE_ShowFrame(SDL_Surface* surface, int srcWidth, int srcHeigh destRect.y = movieY + winRect.uly; destRect.x = winRect.ulx + movieX; } - destRect.w = destWidth + destRect.x; - destRect.h = destHeight + destRect.y; + destRect.w = destWidth; + destRect.h = destHeight; } lastMovieSX = srcX; @@ -683,7 +683,7 @@ static DB_FILE* openFile(char* filePath) // 0x479184 static void openSubtitle(char* filePath) { - subtitleW = windowGetXres(); + subtitleW = win_width(GNWWin); subtitleH = text_height() + 4; if (subtitleFilenameFunc != NULL) {