Browse Source

teraz to już obracanie jest idealne

mateuszb 18 years ago
parent
commit
1b552e5029
2 changed files with 2 additions and 2 deletions
  1. 1 1
      CMT.cpp
  2. 1 1
      SDL_Extensions.cpp

+ 1 - 1
CMT.cpp

@@ -217,7 +217,7 @@ int _tmain(int argc, _TCHAR* argv[])
 		//	def(zr,ko,i);
 		//	fclose(ko);fclose(zr);
 		//}
-		CAmbarCendamo * ac = new CAmbarCendamo("2gryf");
+		CAmbarCendamo * ac = new CAmbarCendamo("3gryf");
 		ac->deh3m();
 		ac->loadDefs();
 		mapHandler * mh = new mapHandler();

+ 1 - 1
SDL_Extensions.cpp

@@ -112,7 +112,7 @@ SDL_Surface * CSDL_Ext::rotate03(SDL_Surface * toRot)
 		for(int j=0; j<ret->h; ++j)
 		{
 			{
-				Uint8 *p = (Uint8 *)toRot->pixels + (ret->h - j - 1) * toRot->pitch + (ret->w - i - 1) * toRot->format->BytesPerPixel;
+				Uint8 *p = (Uint8 *)toRot->pixels + (ret->h - j - 1) * toRot->pitch + (ret->w - i - 1) * toRot->format->BytesPerPixel+2;
 				if(SDL_BYTEORDER == SDL_BIG_ENDIAN)
 				{
 					SDL_PutPixel(ret, i, j, p[0], p[1], p[2], 2);