aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.h
diff options
context:
space:
mode:
authorMax Horn2003-06-01 14:30:26 +0000
committerMax Horn2003-06-01 14:30:26 +0000
commitcb5fb5d40381d76d6438a6eff882918de0d637a8 (patch)
tree69a7adb05844df85b24860857e967e0214e9ddba /scumm/gfx.h
parent2591a4f018e3b884427f18f3fe1710b7f1c6fd1e (diff)
downloadscummvm-rg350-cb5fb5d40381d76d6438a6eff882918de0d637a8.tar.gz
scummvm-rg350-cb5fb5d40381d76d6438a6eff882918de0d637a8.tar.bz2
scummvm-rg350-cb5fb5d40381d76d6438a6eff882918de0d637a8.zip
added a getMaskBuffer method (makes it easier to read some of the code); merged setVirtscreenDirty() into updateDirtyRect(); made setDirtyRange a method of struct VirtScreen
svn-id: r8241
Diffstat (limited to 'scumm/gfx.h')
-rw-r--r--scumm/gfx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/gfx.h b/scumm/gfx.h
index c07e65d010..fc56a6789a 100644
--- a/scumm/gfx.h
+++ b/scumm/gfx.h
@@ -53,6 +53,13 @@ struct VirtScreen { /** Virtual screen areas */
uint16 bdirty[80];
byte *screenPtr;
byte *backBuf;
+
+ void setDirtyRange(int top, int bottom) {
+ for (int i = 0; i < 80; i++) {
+ tdirty[i] = top;
+ bdirty[i] = bottom;
+ }
+ }
};
struct ColorCycle { /** Palette cycles */