OSDN Git Service

空白修正
[dokopop/dokopop.git] / DCHook / MonitorScale.cpp
index 4e610e4..98a458e 100644 (file)
@@ -230,8 +230,8 @@ int GetMonitorScale()
        DISPLAYCONFIG_MODE_INFO *pModeInfoArray = NULL;
        bool ok = false;
        while (1){
-       UINT32 numofpath;
-       UINT32 numofmode;
+               UINT32 numofpath;
+               UINT32 numofmode;
                LONG ret = _GetDisplayConfigBufferSizes(QDC_DATABASE_CURRENT, &numofpath, &numofmode);
                if (ret!=ERROR_SUCCESS)
                        break;
@@ -242,7 +242,7 @@ int GetMonitorScale()
                if (!dpis) break;
                pModeInfoArray = new DISPLAYCONFIG_MODE_INFO[numofmode];
                if (!pModeInfoArray) break;
-       DISPLAYCONFIG_TOPOLOGY_ID tid;
+               DISPLAYCONFIG_TOPOLOGY_ID tid;
                //Note: QDC_ONLY_ACTIVE_PATHS\82ð\8ew\92è\82·\82é\82Æparameter error\82ª\95Ô\82Á\82Ä\82­\82é\81H\81H
                ret = _QueryDisplayConfig(QDC_DATABASE_CURRENT, &numofpath, dpis, &numofmode, pModeInfoArray, &tid);    //TODO: Windows7 or later
                if (ret == ERROR_INSUFFICIENT_BUFFER){
@@ -254,7 +254,7 @@ int GetMonitorScale()
                        dbw("ret=%d", ret);
                        break;
                }
-
+       
                for (int i=0;i<(int)numofpath;i++){
                        //Note: DISPLAYCONFIG_PATH_ACTIVE\82Ì\92è\8b`\82ª\95s\96¾
                        //      Active\82Èpath\82ª\8dÅ\8f\89\97ñ\8b\93\82³\82ê\82é\81A\82Ædocument\82É\82 \82é\82Ì\82Å\96â\91è\82È\82¢\82Æ\8ev\82¤\82ª
@@ -269,8 +269,8 @@ int GetMonitorScale()
                                ok = true;
                                dbw("ok: %d %d @(%d,%d)", PhysicalDesktopWidth, PhysicalMonitorWidth, pt.x, pt.y);
                                break;
+                       }
                }
-       }
                break;
        }