[Scummvm-git-logs] scummvm master -> 6b8b493c41d10391f1a4fb861695f931a4627695

criezy criezy at scummvm.org
Sun Mar 14 02:41:59 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:
6b8b493c41 AGS: Fix text box position when using custom GUI


Commit: 6b8b493c41d10391f1a4fb861695f931a4627695
    https://github.com/scummvm/scummvm/commit/6b8b493c41d10391f1a4fb861695f931a4627695
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-03-14T02:40:52Z

Commit Message:
AGS: Fix text box position when using custom GUI

This was a regression dating back from July 2020 in
the original AGS interpreter from pull request
https://github.com/adventuregamestudio/ags/pull/1104

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 fa88de1b88..ebcefb20d5 100644
--- a/engines/ags/engine/ac/display.cpp
+++ b/engines/ags/engine/ac/display.cpp
@@ -213,7 +213,7 @@ int _display_main(int xx, int yy, int wii, const char *text, int disp_type, int
 		}
 	} else {
 		int xoffs, yoffs, oriwid = wii - padding * 2;
-		draw_text_window_and_bar(&text_window_ds, wantFreeScreenop, &xoffs, &yoffs, &xx, &yy, &wii, &text_color);
+		draw_text_window_and_bar(&text_window_ds, wantFreeScreenop, &xoffs, &yoffs, &adjustedXX, &adjustedYY, &wii, &text_color);
 
 		if (_GP(game).options[OPT_TWCUSTOM] > 0) {
 			alphaChannel = _GP(guis)[_GP(game).options[OPT_TWCUSTOM]].HasAlphaChannel();




More information about the Scummvm-git-logs mailing list