[Scummvm-git-logs] scummvm master -> 2b99448a975829c934abd0356fcf3a3a70933248

dreammaster dreammaster at scummvm.org
Mon Aug 2 02:49:23 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2b99448a97 AGS: Fix workaround for Guard Duty 100,000 wide surface


Commit: 2b99448a975829c934abd0356fcf3a3a70933248
    https://github.com/scummvm/scummvm/commit/2b99448a975829c934abd0356fcf3a3a70933248
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-08-01T19:46:45-07:00

Commit Message:
AGS: Fix workaround for Guard Duty 100,000 wide surface

Changed paths:
    engines/ags/engine/ac/display.cpp


diff --git a/engines/ags/engine/ac/display.cpp b/engines/ags/engine/ac/display.cpp
index d1baabd78d..22db0fd2e4 100644
--- a/engines/ags/engine/ac/display.cpp
+++ b/engines/ags/engine/ac/display.cpp
@@ -95,7 +95,7 @@ int _display_main(int xx, int yy, int wii, const char *text, int disp_type, int
 
 	// WORKAROUND: Guard Duty specifies a wii of 100,000, which is larger
 	// than can be supported by ScummVM's surface classes
-	wii = MIN(wii, 10000);
+	wii = MIN(wii, 8000);
 
 	ensure_text_valid_for_font(todis, usingfont);
 	break_up_text_into_lines(todis, _GP(Lines), wii - 2 * padding, usingfont);




More information about the Scummvm-git-logs mailing list