aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/graphics.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-04 13:38:18 +0100
committerMartin Kiewitz2016-02-04 13:38:18 +0100
commitc17cd72bae7db333414ad955f09478b6c24200a0 (patch)
treedb397127eb539a44a867fb90792671e855df1135 /engines/agi/graphics.cpp
parente019323f07cbf31e3522d78782d7fda647689922 (diff)
downloadscummvm-rg350-c17cd72bae7db333414ad955f09478b6c24200a0.tar.gz
scummvm-rg350-c17cd72bae7db333414ad955f09478b6c24200a0.tar.bz2
scummvm-rg350-c17cd72bae7db333414ad955f09478b6c24200a0.zip
AGI: Add Amiga system UI buttons
Also adjust window frames for Amiga. Amiga also uses hi-res ones.
Diffstat (limited to 'engines/agi/graphics.cpp')
-rw-r--r--engines/agi/graphics.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index 643f0576b4..fbcb9d1b95 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -528,6 +528,7 @@ void GfxMgr::drawBox(int16 x, int16 y, int16 width, int16 height, byte backgroun
// draw lines
switch (_vm->_renderMode) {
case Common::kRenderApple2GS:
+ case Common::kRenderAmiga:
// Slightly different window frame, and actually using 1-pixel width, which is "hi-res"
drawDisplayRect(x + 2, y - 2, width - 4, 1, lineColor);
drawDisplayRect(x + width - 3, y - 2, 1, height - 4, lineColor);
@@ -541,9 +542,11 @@ void GfxMgr::drawBox(int16 x, int16 y, int16 width, int16 height, byte backgroun
drawDisplayRect(x + 1, y - height + 2, width - 2, 1, 0);
drawDisplayRect(x + 1, y - 1, 1, height - 2, 0);
break;
+ case Common::kRenderCGA:
+ case Common::kRenderEGA:
+ case Common::kRenderVGA:
+ case Common::kRenderAtariST:
default:
- // Confirmed platforms that used this type:
- // PC, Amiga, Atari ST
drawDisplayRect(x + 2, y - 1, width - 4, 1, lineColor);
drawDisplayRect(x + width - 4, y - 2, 2, height - 4, lineColor);
drawDisplayRect(x + 2, y - height + 2, width - 4, 1, lineColor);