OSDN Git Service

Fix bugs of DPI conversion.
authors_kawamoto <s_kawamoto@users.sourceforge.jp>
Tue, 18 Feb 2014 14:52:39 +0000 (23:52 +0900)
committers_kawamoto <s_kawamoto@users.sourceforge.jp>
Tue, 18 Feb 2014 14:52:39 +0000 (23:52 +0900)
FFFTP_Eng_Release/FFFTP.exe
Release/FFFTP.exe
statuswin.c

index bc9f0c2..e3d01d6 100644 (file)
Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
index 54b65b9..6281eef 100644 (file)
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
index a0c5642..c22d10d 100644 (file)
@@ -80,7 +80,7 @@ int MakeStatusBarWindow(HWND hWnd, HINSTANCE hInst)
        if(hWndSbar != NULL)\r
        {\r
                // 高DPI対応\r
-               for(i = 0; i < sizeof(SbarColWidth) / sizeof(int); i++)\r
+               for(i = 0; i < sizeof(SbarColWidth) / sizeof(int) - 1; i++)\r
                        SbarColWidth[i] = CalcPixelX(SbarColWidth[i]);\r
                SendMessage(hWndSbar, SB_SETPARTS, sizeof(SbarColWidth)/sizeof(int), (LPARAM)SbarColWidth);\r
                ShowWindow(hWndSbar, SW_SHOW);\r