aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-02-01 18:16:50 +0000
committerFilippos Karapetis2010-02-01 18:16:50 +0000
commit56782692808300096d5da98a6c52b45817525577 (patch)
tree137ec3f2581cd397e3ff3e0d364ca5ffd675b3f6 /engines/sci
parent86408ae3bc08509634bde6c21d64f2dd95c502cd (diff)
downloadscummvm-rg350-56782692808300096d5da98a6c52b45817525577.tar.gz
scummvm-rg350-56782692808300096d5da98a6c52b45817525577.tar.bz2
scummvm-rg350-56782692808300096d5da98a6c52b45817525577.zip
Fixed silly typos (priority is a byte in SCI32)
svn-id: r47800
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/gui32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/gui32.cpp b/engines/sci/graphics/gui32.cpp
index eb44432da5..d5cf1700a2 100644
--- a/engines/sci/graphics/gui32.cpp
+++ b/engines/sci/graphics/gui32.cpp
@@ -231,7 +231,7 @@ void SciGui32::deleteScreenItem(reg_t object) {
void SciGui32::addPlane(reg_t object) {
_planes.push_back(object);
- byte planePri = GET_SEL32V(_s->_segMan, object, priority) & 0xF;
+ byte planePri = GET_SEL32V(_s->_segMan, object, priority) & 0xFF;
if (planePri > _highPlanePri)
_highPlanePri = planePri;
}
@@ -251,7 +251,7 @@ void SciGui32::deletePlane(reg_t object) {
_highPlanePri = 0;
for (uint32 planeNr = 0; planeNr < _planes.size(); planeNr++) {
- byte planePri = GET_SEL32V(_s->_segMan, _planes[planeNr], priority) & 0xF;
+ byte planePri = GET_SEL32V(_s->_segMan, _planes[planeNr], priority) & 0xFF;
if (planePri > _highPlanePri)
_highPlanePri = planePri;
}