diff options
author | Nicola Mettifogo | 2007-07-26 18:30:27 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-07-26 18:30:27 +0000 |
commit | 236634662c1aa8c8bd7784584cbf99986908e8b7 (patch) | |
tree | ab2362186b49ccfac5fe3d41c6262316bfb7d8ae /engines/parallaction/graphics.h | |
parent | d3e7e81c8abdc3c57f82c482dc7efbbd237baf7d (diff) | |
download | scummvm-rg350-236634662c1aa8c8bd7784584cbf99986908e8b7.tar.gz scummvm-rg350-236634662c1aa8c8bd7784584cbf99986908e8b7.tar.bz2 scummvm-rg350-236634662c1aa8c8bd7784584cbf99986908e8b7.zip |
Made screen size parameters properties of engine instead of compile-time constants.
svn-id: r28219
Diffstat (limited to 'engines/parallaction/graphics.h')
-rw-r--r-- | engines/parallaction/graphics.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/engines/parallaction/graphics.h b/engines/parallaction/graphics.h index 05b7dac2ec..6f0f7996d3 100644 --- a/engines/parallaction/graphics.h +++ b/engines/parallaction/graphics.h @@ -36,14 +36,6 @@ namespace Parallaction { - -#define SCREEN_WIDTH 320 -#define SCREEN_HEIGHT 200 -#define SCREEN_SIZE SCREEN_WIDTH*SCREEN_HEIGHT - -#define SCREENMASK_WIDTH SCREEN_WIDTH/4 -#define SCREENPATH_WIDTH SCREEN_WIDTH/8 - #define BASE_PALETTE_COLORS 32 #define FIRST_BASE_COLOR 0 #define LAST_BASE_COLOR (FIRST_BASE_COLOR+BASE_PALETTE_COLORS-1) @@ -168,12 +160,13 @@ public: }; public: + void screenClip(Common::Rect& r, Common::Point& p); // dialogue and text void drawBalloon(const Common::Rect& r, uint16 arg_8); void displayString(uint16 x, uint16 y, const char *text, byte color); void displayCenteredString(uint16 y, const char *text); - bool displayWrappedString(char *text, uint16 x, uint16 y, byte color, uint16 wrapwidth = SCREEN_WIDTH); + bool displayWrappedString(char *text, uint16 x, uint16 y, byte color, int16 wrapwidth = -1); uint16 getStringWidth(const char *text); void getStringExtent(char *text, uint16 maxwidth, int16* width, int16* height); |