diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-14 18:48:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-14 18:48:32 +0000 |
| commit | 44e3582d5e08556c7b1136cfd9a49546cf5fcae0 (patch) | |
| tree | dda3c7286c58d2eee895c0dd771a10e13da374ca /src/BaseDisplay.h | |
| parent | bea6e5f78d38417ea64c283236eee72ecdcaf502 (diff) | |
BScreen (ScreenInfo) now contains a size() instead of a getWidth/getHeight
Diffstat (limited to 'src/BaseDisplay.h')
| -rw-r--r-- | src/BaseDisplay.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/BaseDisplay.h b/src/BaseDisplay.h index 8504261e..1a44dddc 100644 --- a/src/BaseDisplay.h +++ b/src/BaseDisplay.h @@ -32,6 +32,7 @@ class ScreenInfo; #include "LinkedList.h" #include "Timer.h" +#include "Geometry.h" #define AttribShaded (1l << 0) #define AttribMaxHoriz (1l << 1) @@ -334,7 +335,7 @@ private: Colormap colormap; int depth, screen_number; - unsigned int width, height; + Size m_size; public: @@ -349,8 +350,9 @@ public: inline const int &getDepth(void) const { return depth; } inline const int &getScreenNumber(void) const { return screen_number; } - inline const unsigned int &getWidth(void) const { return width; } - inline const unsigned int &getHeight(void) const { return height; } +// inline const unsigned int &getWidth(void) const { return width; } +// inline const unsigned int &getHeight(void) const { return height; } + inline const Size &size() const { return m_size; } }; |
