aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/graphics.h
diff options
context:
space:
mode:
authorStrangerke2013-09-27 21:57:24 +0200
committerStrangerke2013-09-27 21:57:24 +0200
commit649fa6e5f02e7d6d3d8a6265f90d9f2a68a76887 (patch)
treeca4b7f6a6d3a91ec82fe8cdde53554ff11becf67 /engines/avalanche/graphics.h
parentd7230fe8560ef49b1958ba53109af85a40267fca (diff)
downloadscummvm-rg350-649fa6e5f02e7d6d3d8a6265f90d9f2a68a76887.tar.gz
scummvm-rg350-649fa6e5f02e7d6d3d8a6265f90d9f2a68a76887.tar.bz2
scummvm-rg350-649fa6e5f02e7d6d3d8a6265f90d9f2a68a76887.zip
AVALANCHE: Use the Color enum, remove some magic values, identify some dead variables
Diffstat (limited to 'engines/avalanche/graphics.h')
-rw-r--r--engines/avalanche/graphics.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/avalanche/graphics.h b/engines/avalanche/graphics.h
index 4cf338bb3f..e83dbf6e72 100644
--- a/engines/avalanche/graphics.h
+++ b/engines/avalanche/graphics.h
@@ -32,6 +32,7 @@
#include "common/rect.h"
#include "graphics/surface.h"
+#include "avalanche/enums.h"
namespace Avalanche {
class AvalancheEngine;
@@ -74,11 +75,11 @@ public:
// Taken from Free Pascal's Procedure InternalEllipseDefault. Used to replace Pascal's procedure arc.
// Returns the end point of the arc. (Needed in Lucerna::lucerna_clock().)
// TODO: Make it more accurate later.
- Common::Point drawArc(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
+ Common::Point drawArc(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color);
- void drawPieSlice(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, byte color);
- void drawTriangle(::Graphics::Surface &surface, Common::Point *p, byte color);
- void drawText(::Graphics::Surface &surface, const Common::String &text, FontType font, byte fontHeight, int16 x, int16 y, byte color);
+ void drawPieSlice(::Graphics::Surface &surface, int16 x, int16 y, int16 stAngle, int16 endAngle, uint16 radius, Color color);
+ void drawTriangle(::Graphics::Surface &surface, Common::Point *p, Color color);
+ void drawText(::Graphics::Surface &surface, const Common::String &text, FontType font, byte fontHeight, int16 x, int16 y, Color color);
// The caller has to .free() the returned Surfaces!!!
// Further information about these two: http://www.shikadi.net/moddingwiki/Raw_EGA_data