mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Initial part of dynamically-sized adventure map:
- removed no longer used CConfigHandler - remove no longer use resolutions.json - moved widget management from adventure map to a separate class - adventure map layout is now loaded from config
This commit is contained in:
@@ -243,10 +243,13 @@ void GeneralOptionsTab::fillSelectableResolutions()
|
||||
{
|
||||
selectableResolutions.clear();
|
||||
|
||||
for(const auto & it : conf.guiOptions)
|
||||
{
|
||||
const Point dimensions(it.first.first, it.first.second);
|
||||
// TODO: CONFIGURABLE ADVMAP
|
||||
static const std::vector<Point> supportedResolutions = {
|
||||
{ 800, 600 }
|
||||
};
|
||||
|
||||
for(const auto & dimensions : supportedResolutions)
|
||||
{
|
||||
if(isResolutionSupported(dimensions))
|
||||
selectableResolutions.push_back(dimensions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user