[Scummvm-git-logs] scummvm master -> 11558b92aa874ba9d5999cd2b7842e8fc240b007
sev-
sev at scummvm.org
Tue Aug 17 22:47:04 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:
11558b92aa AGI: Fix pattern plotting. Bugreport #11923
Commit: 11558b92aa874ba9d5999cd2b7842e8fc240b007
https://github.com/scummvm/scummvm/commit/11558b92aa874ba9d5999cd2b7842e8fc240b007
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-08-18T00:46:49+02:00
Commit Message:
AGI: Fix pattern plotting. Bugreport #11923
Changed paths:
engines/agi/picture.cpp
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 2b3bba89db..8a43fe4aea 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -212,7 +212,6 @@ void PictureMgr::plotPattern(int x, int y) {
int pen_x = x;
int pen_y = y;
- uint16 texture_num = 0;
uint16 pen_size = (_patCode & 0x07);
circle_ptr = &circle_data[circle_list[pen_size]];
@@ -247,7 +246,7 @@ void PictureMgr::plotPattern(int x, int y) {
pen_final_y = pen_y; // used in plotrelated
- t = (uint8)(texture_num | 0x01); // even
+ t = (uint8)(_patNum | 0x01); // even
// new purpose for temp16
@@ -270,7 +269,7 @@ void PictureMgr::plotPattern(int x, int y) {
} else {
circleCond = ((_patCode & 0x10) != 0);
counterStep = 4;
- ditherCond = 0x01;
+ ditherCond = 0x02;
}
for (; pen_y < pen_final_y; pen_y++) {
@@ -308,9 +307,10 @@ void PictureMgr::plotBrush() {
for (;;) {
if (_patCode & 0x20) {
- if ((_patNum = getNextByte()) >= _minCommand)
+ byte b = getNextByte();
+ if (b >= _minCommand)
break;
- _patNum = (_patNum >> 1) & 0x7f;
+ _patNum = b;
}
if ((x1 = getNextByte()) >= _minCommand)
More information about the Scummvm-git-logs
mailing list