aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/screen.cpp
diff options
context:
space:
mode:
authorjohndoe1232018-05-18 21:15:33 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit94fdd597d985cba1436aea7c6be67982de220199 (patch)
tree22c0dd9e3a012c688f8f054993e6413f7657fff0 /engines/illusions/screen.cpp
parent54dd3814414d7ef5de09cda197b1065655ee9242 (diff)
downloadscummvm-rg350-94fdd597d985cba1436aea7c6be67982de220199.tar.gz
scummvm-rg350-94fdd597d985cba1436aea7c6be67982de220199.tar.bz2
scummvm-rg350-94fdd597d985cba1436aea7c6be67982de220199.zip
ILLUSIONS: BBDOU: Add menu system class, adjust existing code (actual menus not done yet)
(cherry picked from commit 03b0ca1)
Diffstat (limited to 'engines/illusions/screen.cpp')
-rw-r--r--engines/illusions/screen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/illusions/screen.cpp b/engines/illusions/screen.cpp
index 9979cd1fa8..b6cbd2dba4 100644
--- a/engines/illusions/screen.cpp
+++ b/engines/illusions/screen.cpp
@@ -542,6 +542,10 @@ void Screen8Bit::fillSurface(Graphics::Surface *surface, byte color) {
surface->fillRect(Common::Rect(surface->w, surface->h), color);
}
+void Screen8Bit::fillSurfaceRect(Graphics::Surface *surface, Common::Rect r, byte color) {
+ surface->fillRect(r, color);
+}
+
bool Screen8Bit::isSpritePixelSolid(Common::Point &testPt, Common::Point &drawPosition, Common::Point &drawOffset,
const SurfInfo &surfInfo, int16 scale, uint flags, byte *compressedPixels) {
// Unused in Duckman
@@ -742,6 +746,10 @@ void Screen16Bit::fillSurface(Graphics::Surface *surface, byte color) {
surface->fillRect(Common::Rect(surface->w, surface->h), convertColor(color));
}
+void Screen16Bit::fillSurfaceRect(Graphics::Surface *surface, Common::Rect r, byte color) {
+ surface->fillRect(r, convertColor(color));
+}
+
bool Screen16Bit::isSpritePixelSolid(Common::Point &testPt, Common::Point &drawPosition, Common::Point &drawOffset,
const SurfInfo &surfInfo, int16 scale, uint flags, byte *compressedPixels) {