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:
parent
b85cd7c759
commit
1b552e5029
2
CMT.cpp
2
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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user