Sfoglia il codice sorgente

już jest trochę lepiej

mateuszb 18 anni fa
parent
commit
84e04dcd55
3 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. BIN
      CDefHandler.cpp
  2. 2 2
      CMT.cpp
  3. 4 1
      SDL_Extensions.cpp

BIN
CDefHandler.cpp


+ 2 - 2
CMT.cpp

@@ -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;

+ 4 - 1
SDL_Extensions.cpp

@@ -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)
 {