Browse Source

Fix naming convention to camelCase

PredatorMF 6 years ago
parent
commit
a773601820
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Source/Urho3D/Graphics/Direct3D9/D3D9Graphics.cpp

+ 3 - 5
Source/Urho3D/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -304,7 +304,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
     bool tripleBuffer, int multiSample, int monitor, int refreshRate)
     bool tripleBuffer, int multiSample, int monitor, int refreshRate)
 {
 {
     URHO3D_PROFILE(SetScreenMode);
     URHO3D_PROFILE(SetScreenMode);
-    bool monitor_changed = false;
+    bool monitorChanged = false;
 
 
     highDPI = false;   // SDL does not support High DPI mode on Windows platform yet, so always disable it for now
     highDPI = false;   // SDL does not support High DPI mode on Windows platform yet, so always disable it for now
 
 
@@ -351,7 +351,7 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
         vsync == vsync_ && tripleBuffer == tripleBuffer_ && multiSample == multiSample_ && monitor == monitor_ && refreshRate == refreshRate_)
         vsync == vsync_ && tripleBuffer == tripleBuffer_ && multiSample == multiSample_ && monitor == monitor_ && refreshRate == refreshRate_)
         return true;
         return true;
 
 
-    monitor_changed = monitor != monitor_;
+    monitorChanged = monitor != monitor_;
 
 
     SDL_SetHint(SDL_HINT_ORIENTATIONS, orientations_.CString());
     SDL_SetHint(SDL_HINT_ORIENTATIONS, orientations_.CString());
 
 
@@ -477,13 +477,11 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
     }
     }
     else
     else
     {
     {
-        if (!monitor_changed)
+        if (!monitorChanged)
             ResetDevice();
             ResetDevice();
         else
         else
         {
         {
-#ifdef URHO3D_LOGGING
             URHO3D_LOGINFO("Destroying D3D9 device");
             URHO3D_LOGINFO("Destroying D3D9 device");
-#endif
             // Monitor changed, re-create the D3D9 device on the new monitor
             // Monitor changed, re-create the D3D9 device on the new monitor
             impl_->vertexDeclarations_.Clear();
             impl_->vertexDeclarations_.Clear();
             OnDeviceLost();
             OnDeviceLost();