1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

* printAtMiddle won't crash when called with an empty string

* removed unused code from CMT.cpp
* statusbar is working
* interaction between buttons and statusbar
This commit is contained in:
Michał W. Urbańczyk
2007-08-07 11:54:50 +00:00
parent 2fa2910777
commit efcc7d08da
6 changed files with 52 additions and 151 deletions

View File

@ -48,6 +48,7 @@ void updateRect (SDL_Rect * rect, SDL_Surface * scr)
}
void CSDL_Ext::printAtMiddle(std::string text, int x, int y, TTF_Font * font, SDL_Color kolor, SDL_Surface * dst, unsigned char quality)
{
if(text.length()==0) return;
SDL_Surface * temp;
switch (quality)
{