aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/screen_lol.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-09-30 14:53:34 +0000
committerJohannes Schickel2009-09-30 14:53:34 +0000
commitb8c7237d12ac766dc5db9a5731e3e50f0715cd09 (patch)
tree29127cfdb3dde538dd359568a0a79bc4ef76d729 /engines/kyra/screen_lol.cpp
parent03a26923c91ee608382bce6d11af4a9049fa86dc (diff)
downloadscummvm-rg350-b8c7237d12ac766dc5db9a5731e3e50f0715cd09.tar.gz
scummvm-rg350-b8c7237d12ac766dc5db9a5731e3e50f0715cd09.tar.bz2
scummvm-rg350-b8c7237d12ac766dc5db9a5731e3e50f0715cd09.zip
Cleanup: got rid of Screen::ShadeType.
svn-id: r44487
Diffstat (limited to 'engines/kyra/screen_lol.cpp')
-rw-r--r--engines/kyra/screen_lol.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/kyra/screen_lol.cpp b/engines/kyra/screen_lol.cpp
index 6ad1b86e47..624f8d57df 100644
--- a/engines/kyra/screen_lol.cpp
+++ b/engines/kyra/screen_lol.cpp
@@ -149,6 +149,24 @@ void Screen_LoL::fprintStringIntro(const char *format, int x, int y, uint8 c1, u
printText(buffer, x, y, c1, c2);
}
+void Screen_LoL::drawShadedBox(int x1, int y1, int x2, int y2, int color1, int color2) {
+ assert(x1 >= 0 && y1 >= 0);
+ hideMouse();
+
+ fillRect(x1, y1, x2, y1 + 1, color1);
+ fillRect(x1, y1, x1 + 1, y2, color1);
+
+ drawClippedLine(x2, y1, x2, y2, color2);
+ drawClippedLine(x2 - 1, y1 + 1, x2 - 1, y2 - 1, color2);
+ drawClippedLine(x1 + 1, y2 - 1, x2, y2 - 1, color2);
+ drawClippedLine(x1, y2, x2, y2, color2);
+
+ if (_use16ColorMode)
+ drawBox(x1, y1, x2, y2, 0);
+
+ showMouse();
+}
+
void Screen_LoL::generateGrayOverlay(const Palette &srcPal, uint8 *grayOverlay, int factor, int addR, int addG, int addB, int lastColor, bool skipSpecialColors) {
Palette tmpPal(lastColor);