1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

When changing resolution, both screen? and res? must be set. Fixes #813.

This commit is contained in:
Frank Zago
2011-09-25 16:39:13 +00:00
parent ddd3d166b1
commit 1f9e97005f

View File

@@ -430,9 +430,9 @@ void processCommand(const std::string &message)
else
{
for(j=conf.guiOptions.begin(); j!=conf.guiOptions.end() && hlp++<i; j++); //move j to the i-th resolution info
conf.SetResolution(j->first.first, j->first.second);
conf.cc.screenx = j->first.first;
conf.cc.screeny = j->first.second;
conf.cc.resx = conf.cc.screenx = j->first.first;
conf.cc.resy = conf.cc.screeny = j->first.second;
conf.SetResolution(conf.cc.screenx, conf.cc.screeny);
tlog0 << "Screen resolution set to " << conf.cc.screenx << " x " << conf.cc.screeny <<". It will be applied when the game starts.\n";
}
}