1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* a bit better screen scrolling for small resolutions

* a bit optimized terrainRect
This commit is contained in:
mateuszb
2010-08-26 15:33:55 +00:00
parent 8902aeb3f9
commit d1bfe4cbd6
7 changed files with 42 additions and 48 deletions

View File

@@ -66,7 +66,8 @@ using namespace boost::assign;
using namespace CSDL_Ext;
void processCommand(const std::string &message, CClient *&client);
void updateScreenLT(int maxW, int maxH);
extern Point screenLTmax;
extern std::queue<SDL_Event*> events;
extern boost::mutex eventsM;
@@ -1332,7 +1333,7 @@ void CPlayerInterface::update()
CSDL_Ext::update(screen);
CGI->curh->draw2();
updateScreenLT(conf.cc.resx, conf.cc.resy);
screenLTmax = Point(conf.cc.resx - screen->w, conf.cc.resy - screen->h);
pim->unlock();