diff options
author | uruk | 2014-02-18 13:53:20 +0100 |
---|---|---|
committer | uruk | 2014-02-18 13:56:19 +0100 |
commit | 589c6ffed25e818cd332e3ffb462ee13c4c8703e (patch) | |
tree | 30b072409c665eae74e77a7baceb34af8ba65b0d /engines/avalanche/graphics.h | |
parent | 36ac801a4da38a2454ebc7a305093f8ed66cd1b3 (diff) | |
download | scummvm-rg350-589c6ffed25e818cd332e3ffb462ee13c4c8703e.tar.gz scummvm-rg350-589c6ffed25e818cd332e3ffb462ee13c4c8703e.tar.bz2 scummvm-rg350-589c6ffed25e818cd332e3ffb462ee13c4c8703e.zip |
AVALANCHE: Reimplement the rectangle drawing methods.
Diffstat (limited to 'engines/avalanche/graphics.h')
-rw-r--r-- | engines/avalanche/graphics.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h index 05bd507d8e..b720ae7c8e 100644 --- a/engines/avalanche/graphics.h +++ b/engines/avalanche/graphics.h @@ -59,13 +59,15 @@ public: void loadDigits(); void loadMouse(byte which); + // We have to handle the drawing of rectangles a little bit differently to mimic Pascal's bar() and rectangle() methods properly. + // Now it is possible to use the original coordinates everywhere. + void drawFilledRectangle(Common::Rect rect, Color color); + void drawRectangle(Common::Rect rect, Color color); void drawDot(int x, int y, Color color); void drawLine(int x1, int y1, int x2, int y2, int penX, int penY, Color color); Common::Point drawScreenArc(int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color); void drawPieSlice(int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color); void drawTriangle(Common::Point *p, Color color); - void drawFilledRectangle(Common::Rect rect, Color color); - void drawRectangle(Common::Rect rect, Color color); void drawNormalText(const Common::String text, FontType font, byte fontHeight, int16 x, int16 y, Color color); void drawBigText(const Common::String text, FontType font, byte fontHeight, int16 x, int16 y, Color color); // Very similar to drawText. TODO: Try to unify the two. void drawScrollText(const Common::String text, FontType font, byte fontHeight, int16 x, int16 y, Color color); |