Mercurial > fife-parpg
comparison engine/core/controller/enginesettings.h @ 650:51bbda7676f0
* Fixed some more integer definitions
* All vars containing bits per pixel should now be uint16_t
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 14 Oct 2010 15:32:09 +0000 |
parents | 855ad500f991 |
children | e3140f01749d |
comparison
equal
deleted
inserted
replaced
649:b9c132cb6ea4 | 650:51bbda7676f0 |
---|---|
54 void validate() const; | 54 void validate() const; |
55 | 55 |
56 /** Sets bits per pixel | 56 /** Sets bits per pixel |
57 * @see getPossibleBitsPerPixel | 57 * @see getPossibleBitsPerPixel |
58 */ | 58 */ |
59 void setBitsPerPixel(uint8_t bitsperpixel); | 59 void setBitsPerPixel(uint16_t bitsperpixel); |
60 | 60 |
61 /** Gets currently set bits per pixel value | 61 /** Gets currently set bits per pixel value |
62 */ | 62 */ |
63 unsigned int getBitsPerPixel() const { | 63 uint16_t getBitsPerPixel() const { |
64 return m_bitsperpixel; | 64 return m_bitsperpixel; |
65 } | 65 } |
66 | 66 |
67 /** Gets all possible bits per pixel values | 67 /** Gets all possible bits per pixel values |
68 */ | 68 */ |
69 std::vector<uint8_t> getPossibleBitsPerPixel() const; | 69 std::vector<uint16_t> getPossibleBitsPerPixel() const; |
70 | 70 |
71 /** Gets all possible screen resolutions | 71 /** Gets all possible screen resolutions |
72 */ | 72 */ |
73 std::vector<std::pair<uint16_t, uint16_t> > getPossibleResolutions() const; | 73 std::vector<std::pair<uint16_t, uint16_t> > getPossibleResolutions() const; |
74 | 74 |
128 */ | 128 */ |
129 void setScreenWidth(uint16_t screenwidth); | 129 void setScreenWidth(uint16_t screenwidth); |
130 | 130 |
131 /** Gets screen width (pixels) | 131 /** Gets screen width (pixels) |
132 */ | 132 */ |
133 unsigned int getScreenWidth() const { | 133 uint16_t getScreenWidth() const { |
134 return m_screenwidth; | 134 return m_screenwidth; |
135 } | 135 } |
136 | 136 |
137 /** Sets screen height (pixels) | 137 /** Sets screen height (pixels) |
138 */ | 138 */ |
139 void setScreenHeight(uint16_t screenheight); | 139 void setScreenHeight(uint16_t screenheight); |
140 | 140 |
141 /** Gets screen height (pixels) | 141 /** Gets screen height (pixels) |
142 */ | 142 */ |
143 unsigned int getScreenHeight() const { | 143 uint16_t getScreenHeight() const { |
144 return m_screenheight; | 144 return m_screenheight; |
145 } | 145 } |
146 | 146 |
147 /** Sets path for default font | 147 /** Sets path for default font |
148 */ | 148 */ |