1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

już jest trochę lepiej

This commit is contained in:
mateuszb
2007-07-11 10:27:42 +00:00
parent 2ce01fa562
commit 84e04dcd55
3 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@@ -331,11 +331,11 @@ int _tmain(int argc, _TCHAR* argv[])
{
initTable[ss] = mapstr[ss];
}
#define CHOOSE
//#define CHOOSE
#ifdef CHOOSE
CAmbarCendamo * ac = new CAmbarCendamo(initTable); //4gryf
#else
CAmbarCendamo * ac = new CAmbarCendamo("5gryf"); //4gryf
CAmbarCendamo * ac = new CAmbarCendamo("4gryf"); //4gryf
#endif
CMapHeader * mmhh = new CMapHeader(ac->bufor); //czytanie nag��wka
cgi->ac = ac;

View File

@@ -20,7 +20,10 @@ SDL_Rect genRect(int hh, int ww, int xx, int yy)
}
void blitAt(SDL_Surface * src, int x, int y, SDL_Surface * dst=ekran)
{
SDL_BlitSurface(src,NULL,dst,&genRect(src->h,src->w,x,y));
SDL_SaveBMP(src, "bufimg.bmp");
SDL_SaveBMP(dst, "bufimg2.bmp");
SDL_Rect pom = genRect(src->h,src->w,x,y);
SDL_BlitSurface(src,NULL,dst,&pom);
}
SDL_Color genRGB(int r, int g, int b, int a=0)
{