Browse Source

Fix build of Sample 54 for ARM and RPI.

Eugene Kozlov 5 years ago
parent
commit
3af4d23623
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Samples/54_WindowSettingsDemo/WindowSettingsDemo.cpp

+ 2 - 2
Source/Samples/54_WindowSettingsDemo/WindowSettingsDemo.cpp

@@ -285,10 +285,10 @@ void WindowSettingsDemo::SynchronizeSettings()
     // Synchronize resolution list
     resolutionControl_->RemoveAllItems();
     const auto& resolutions = graphics->GetResolutions(currentMonitor);
-    for (const IntVector3& resolutions : resolutions)
+    for (const IntVector3& resolution : resolutions)
     {
         auto resolutionEntry = MakeShared<Text>(context_);
-        resolutionEntry->SetText(ToString("%dx%d, %d Hz", resolutions.x_, resolutions.y_, resolutions.z_));
+        resolutionEntry->SetText(ToString("%dx%d, %d Hz", resolution.x_, resolution.y_, resolution.z_));
         resolutionEntry->SetMinWidth(CeilToInt(resolutionEntry->GetRowWidth(0) + 10));
         resolutionControl_->AddItem(resolutionEntry);
         resolutionEntry->SetStyleAuto();