Prechádzať zdrojové kódy

Fix build of Sample 54 for ARM and RPI.

Eugene Kozlov 5 rokov pred
rodič
commit
3af4d23623

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

@@ -285,10 +285,10 @@ void WindowSettingsDemo::SynchronizeSettings()
     // Synchronize resolution list
     // Synchronize resolution list
     resolutionControl_->RemoveAllItems();
     resolutionControl_->RemoveAllItems();
     const auto& resolutions = graphics->GetResolutions(currentMonitor);
     const auto& resolutions = graphics->GetResolutions(currentMonitor);
-    for (const IntVector3& resolutions : resolutions)
+    for (const IntVector3& resolution : resolutions)
     {
     {
         auto resolutionEntry = MakeShared<Text>(context_);
         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));
         resolutionEntry->SetMinWidth(CeilToInt(resolutionEntry->GetRowWidth(0) + 10));
         resolutionControl_->AddItem(resolutionEntry);
         resolutionControl_->AddItem(resolutionEntry);
         resolutionEntry->SetStyleAuto();
         resolutionEntry->SetStyleAuto();