[Scummvm-git-logs] scummvm master -> 086661d2d90bdd2037e474fe6d04e1bb338c6b87
eriktorbjorn
noreply at scummvm.org
Mon Jul 17 13:30:55 UTC 2023
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:
086661d2d9 AGI: Fix regression in Winnie the Pooh graphics
Commit: 086661d2d90bdd2037e474fe6d04e1bb338c6b87
https://github.com/scummvm/scummvm/commit/086661d2d90bdd2037e474fe6d04e1bb338c6b87
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2023-07-17T15:27:45+02:00
Commit Message:
AGI: Fix regression in Winnie the Pooh graphics
The left side of each picture was cut off, and padded with white at the
right side instead. This regression was introduced somewhere between
1.7.0 and 1.8.0 as part of a "graphics rewrite + cleanup".
Changed paths:
engines/agi/preagi/winnie.cpp
diff --git a/engines/agi/preagi/winnie.cpp b/engines/agi/preagi/winnie.cpp
index 9f993df8d1c..7ce80222cf0 100644
--- a/engines/agi/preagi/winnie.cpp
+++ b/engines/agi/preagi/winnie.cpp
@@ -1081,7 +1081,9 @@ void WinnieEngine::drawPic(const char *szName) {
file.read(buffer, size);
file.close();
+ _picture->setOffset(IDI_WTP_PIC_X0, IDI_WTP_PIC_Y0);
_picture->decodePicture(buffer, size, 1, IDI_WTP_PIC_WIDTH, IDI_WTP_PIC_HEIGHT);
+ _picture->setOffset(0, 0);
_picture->showPic(IDI_WTP_PIC_X0, IDI_WTP_PIC_Y0, IDI_WTP_PIC_WIDTH, IDI_WTP_PIC_HEIGHT);
free(buffer);
@@ -1116,7 +1118,9 @@ void WinnieEngine::drawRoomPic() {
readRoom(_room, buffer, roomhdr);
// draw room picture
+ _picture->setOffset(IDI_WTP_PIC_X0, IDI_WTP_PIC_Y0);
_picture->decodePicture(buffer + roomhdr.ofsPic - _roomOffset, 4096, 1, IDI_WTP_PIC_WIDTH, IDI_WTP_PIC_HEIGHT);
+ _picture->setOffset(0, 0);
_picture->showPic(IDI_WTP_PIC_X0, IDI_WTP_PIC_Y0, IDI_WTP_PIC_WIDTH, IDI_WTP_PIC_HEIGHT);
// draw object picture
More information about the Scummvm-git-logs
mailing list