Browse Source

Added highDPI to logging during window creation.

SirNate0 6 years ago
parent
commit
f2af8c7bb9

+ 2 - 0
Source/Urho3D/Graphics/Direct3D11/D3D11Graphics.cpp

@@ -386,6 +386,8 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
         msg.Append(" borderless");
         msg.Append(" borderless");
     if (resizable_)
     if (resizable_)
         msg.Append(" resizable");
         msg.Append(" resizable");
+    if (highDPI_)
+        msg.Append(" highDPI");
     if (multiSample > 1)
     if (multiSample > 1)
         msg.AppendWithFormat(" multisample %d", multiSample);
         msg.AppendWithFormat(" multisample %d", multiSample);
     URHO3D_LOGINFO(msg);
     URHO3D_LOGINFO(msg);

+ 2 - 0
Source/Urho3D/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -523,6 +523,8 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
         msg.Append(" borderless");
         msg.Append(" borderless");
     if (resizable_)
     if (resizable_)
         msg.Append(" resizable");
         msg.Append(" resizable");
+    if (highDPI_)
+        msg.Append(" highDPI");
     if (multiSample > 1)
     if (multiSample > 1)
         msg.AppendWithFormat(" multisample %d", multiSample);
         msg.AppendWithFormat(" multisample %d", multiSample);
     URHO3D_LOGINFO(msg);
     URHO3D_LOGINFO(msg);

+ 3 - 1
Source/Urho3D/Graphics/OpenGL/OGLGraphics.cpp

@@ -505,13 +505,15 @@ bool Graphics::SetMode(int width, int height, bool fullscreen, bool borderless,
 
 
 #ifdef URHO3D_LOGGING
 #ifdef URHO3D_LOGGING
     URHO3D_LOGINFOF("Adapter used %s %s", (const char *) glGetString(GL_VENDOR), (const char *) glGetString(GL_RENDERER));
     URHO3D_LOGINFOF("Adapter used %s %s", (const char *) glGetString(GL_VENDOR), (const char *) glGetString(GL_RENDERER));
-    
+
     String msg;
     String msg;
     msg.AppendWithFormat("Set screen mode %dx%d rate %d Hz %s monitor %d", width_, height_, refreshRate_, (fullscreen_ ? "fullscreen" : "windowed"), monitor_);
     msg.AppendWithFormat("Set screen mode %dx%d rate %d Hz %s monitor %d", width_, height_, refreshRate_, (fullscreen_ ? "fullscreen" : "windowed"), monitor_);
     if (borderless_)
     if (borderless_)
         msg.Append(" borderless");
         msg.Append(" borderless");
     if (resizable_)
     if (resizable_)
         msg.Append(" resizable");
         msg.Append(" resizable");
+    if (highDPI_)
+        msg.Append(" highDPI");
     if (multiSample > 1)
     if (multiSample > 1)
         msg.AppendWithFormat(" multisample %d", multiSample);
         msg.AppendWithFormat(" multisample %d", multiSample);
     URHO3D_LOGINFO(msg);
     URHO3D_LOGINFO(msg);