aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_mr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/screen_mr.cpp')
-rw-r--r--engines/kyra/screen_mr.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/kyra/screen_mr.cpp b/engines/kyra/screen_mr.cpp
index 0fcfe00879..4cea50927c 100644
--- a/engines/kyra/screen_mr.cpp
+++ b/engines/kyra/screen_mr.cpp
@@ -135,4 +135,18 @@ int Screen_MR::getDrawLayer2(int x, int y, int height) {
return layer;
}
+void Screen_MR::drawFilledBox(int x1, int y1, int x2, int y2, uint8 c1, uint8 c2, uint8 c3) {
+ debugC(9, kDebugLevelScreen, "Screen_MR::drawFilledBox(%d, %d, %d, %d, %d, %d, %d,)", x1, y1, x2, y2, c1, c2, c3);
+
+ fillRect(x1, y1, x2, y2, c1);
+
+ fillRect(x1, y1, x2, y1+1, c2);
+ fillRect(x2-1, y1, x2, y2, c2);
+
+ drawClippedLine(x1, y1, x1, y2, c3);
+ drawClippedLine(x1+1, y1+1, x1+1, y2-2, c3);
+ drawClippedLine(x1, y2, x2, y2, c3);
+ drawClippedLine(x1, y2-1, x2-1, y2-1, c3);
+}
+
} // end of namespace Kyra