1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

New, experimental crashhandler for windows (creates minidumps).

Several minor fixes and improvements.
This commit is contained in:
Michał W. Urbańczyk
2009-07-31 20:10:22 +00:00
parent 586957b749
commit 78afb07f52
11 changed files with 169 additions and 32 deletions

View File

@ -309,7 +309,7 @@ CSimpleWindow * CMessage::genWindow(std::string text, int player, int Lmar, int
std::vector<std::string> * brtext = breakText(text,32,true,true);
std::vector<std::vector<SDL_Surface*> > * txtg = drawText(brtext, fontHeight);
std::pair<int,int> txts = getMaxSizes(txtg, fontHeight);
ret->bitmap = drawBox1(txts.first+Lmar+Rmar,txts.second+Tmar+Bmar,0);
ret->bitmap = drawBox1(txts.first+Lmar+Rmar,txts.second+Tmar+Bmar,player);
ret->pos.h=ret->bitmap->h;
ret->pos.w=ret->bitmap->w;
int curh = ret->bitmap->h/2 - (fontHeight*txtg->size())/2;