mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Wyświetlamy tylko tyle terenu ile trzeba.
This commit is contained in:
2
CMT.cpp
2
CMT.cpp
@@ -231,7 +231,7 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
mh->init();
|
||||
THC std::cout<<"Inicjalizacja mapHandlera: "<<tmh.getDif()<<std::endl;
|
||||
//SDL_Rect * sr = new SDL_Rect(); sr->h=64;sr->w=64;sr->x=0;sr->y=0;
|
||||
SDL_Surface * teren = mh->terrainRect(0,0,32,32);
|
||||
SDL_Surface * teren = mh->terrainRect(0,0,32,24);
|
||||
THC std::cout<<"Przygotowanie terenu do wyswietlenia: "<<tmh.getDif()<<std::endl;
|
||||
SDL_BlitSurface(teren,NULL,ekran,NULL);
|
||||
SDL_Flip(ekran);
|
||||
|
Reference in New Issue
Block a user