|
|
@@ -108,6 +108,9 @@ typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_
|
|
|
uint32_t colorTouint32_t(const SDL_Color * color); //little endian only
|
|
|
SDL_Color makeColor(ui8 r, ui8 g, ui8 b, ui8 a);
|
|
|
|
|
|
+ /// returns dimensions of display on which VCMI window is located
|
|
|
+ Rect getDisplayBounds();
|
|
|
+
|
|
|
void update(SDL_Surface * what = screen); //updates whole surface (default - main screen)
|
|
|
void drawLine(SDL_Surface * sur, int x1, int y1, int x2, int y2, const SDL_Color & color1, const SDL_Color & color2);
|
|
|
void drawBorder(SDL_Surface * sur, int x, int y, int w, int h, const SDL_Color &color, int depth = 1);
|