1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

teraz to już obracanie jest idealne

This commit is contained in:
mateuszb 2007-06-07 12:08:26 +00:00
parent b85cd7c759
commit 1b552e5029
2 changed files with 2 additions and 2 deletions

View File

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

View File

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