1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

faster FoW in minimap, does not work, compiler errors

This commit is contained in:
mateuszb
2007-12-06 18:55:58 +00:00
parent c8c0d0eaaf
commit 58f1a2169f
13 changed files with 204 additions and 394 deletions

View File

@@ -23,7 +23,7 @@ bool isItIn(const SDL_Rect * rect, int x, int y)
return true;
else return false;
}
SDL_Rect genRect(int hh, int ww, int xx, int yy)
inline SDL_Rect genRect(int hh, int ww, int xx, int yy)
{
SDL_Rect ret;
ret.h=hh;
@@ -167,6 +167,8 @@ void CSDL_Ext::SDL_PutPixelWithoutRefresh(SDL_Surface *ekran, int x, int y, Uint
p[0] = R;
p[1] = G;
p[2] = B;
if(ekran->format->BytesPerPixel==4)
p[3] = A;
#endif
}