From d80371d459a97d7105e75a28089c4805f903d0d4 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 16 Jun 2016 17:14:48 +0200 Subject: [PATCH 1/2] Changed: Only display this message in debug --HG-- branch : develop --- code/nel/src/misc/system_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/misc/system_utils.cpp b/code/nel/src/misc/system_utils.cpp index 32fed9344..81bb5246b 100644 --- a/code/nel/src/misc/system_utils.cpp +++ b/code/nel/src/misc/system_utils.cpp @@ -107,7 +107,7 @@ bool CSystemUtils::updateProgressBar(uint value, uint total) #ifdef TASKBAR_PROGRESS if (s_window == NULL) { - nlwarning("No window has be set with CSystemUtils::setWindow(), progress bar can't be displayed"); + nldebug("No window has be set with CSystemUtils::setWindow(), progress bar can't be displayed"); return false; } From 306aae7af947a15314f172033b644011022de73e Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 16 Jun 2016 17:15:45 +0200 Subject: [PATCH 2/2] Changed: Only display virtual screen size if DISPLAY_DEVICE_ATTACHED_TO_DESKTOP flag is defined --HG-- branch : develop --- .../nel/src/3d/driver/opengl/driver_opengl_extension.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_extension.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_extension.cpp index 9fbee7518..373c501bf 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_extension.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_extension.cpp @@ -2006,9 +2006,12 @@ bool registerWGlExtensions(CGlExtensions &ext, HDC hDC) // list all devices connected to GPU while(nwglEnumGpuDevicesNV(hGPU, j, &gpuDevice)) { - nlinfo("Device: %s - %s - flags: %u - rect: (%u,%u)-(%u,%u)", gpuDevice.DeviceName, gpuDevice.DeviceString, (uint)gpuDevice.Flags, - (uint)gpuDevice.rcVirtualScreen.left, (uint)gpuDevice.rcVirtualScreen.top, - (uint)gpuDevice.rcVirtualScreen.right, (uint)gpuDevice.rcVirtualScreen.bottom); + nlinfo("Device: %s / %s / flags: %u", gpuDevice.DeviceName, gpuDevice.DeviceString, (uint)gpuDevice.Flags); + + if (gpuDevice.Flags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) + { + nlinfo("Virtual screen: (%d,%d)-(%d,%d)", (sint)gpuDevice.rcVirtualScreen.left, (sint)gpuDevice.rcVirtualScreen.top, (sint)gpuDevice.rcVirtualScreen.right, (sint)gpuDevice.rcVirtualScreen.bottom); + } ++j; }