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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user