1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

- background for main menu can be scaled. Won't work as default due to non-scalable video

This commit is contained in:
Ivan Savenko
2012-05-20 11:03:21 +00:00
parent 88639be91b
commit 59255a4cad
8 changed files with 68 additions and 28 deletions

View File

@@ -34,6 +34,7 @@ public:
// Image class
class CPicture : public CIntObject
{
void setSurface(SDL_Surface *to);
public:
SDL_Surface * bg;
Rect * srcRect; //if NULL then whole surface will be used
@@ -53,6 +54,7 @@ public:
~CPicture();
void init();
void scaleTo(Point size);
void createSimpleRect(const Rect &r, bool screenFormat, ui32 color);
void show(SDL_Surface * to);
void showAll(SDL_Surface * to);