Add 24bits mode strings
authorMagnus Olsen <magnus@greatlord.com>
Wed, 25 May 2005 00:04:12 +0000 (00:04 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Wed, 25 May 2005 00:04:12 +0000 (00:04 +0000)
hope it fix qemu

svn path=/trunk/; revision=15489

reactos/lib/cpl/desk/en.rc
reactos/lib/cpl/desk/resource.h
reactos/lib/cpl/desk/settings.c
reactos/lib/cpl/desk/sv.rc

index 8e8c8ca..a4c4c4f 100644 (file)
@@ -98,7 +98,7 @@ BEGIN
     IDS_COLOR_4BIT "16 Colors"
     IDS_COLOR_8BIT "256 Colors"
     IDS_COLOR_16BIT "High Color (16 Bit)"
-    IDS_COLOR_32BIT "True Color (24 Bit)"
+    IDS_COLOR_24BIT "True Color (24 Bit)"
     IDS_COLOR_32BIT "True Color (32 Bit)"
     IDS_PIXEL "%lux%lu Pixel"
 END
index 3a9f669..988dd01 100644 (file)
@@ -61,6 +61,7 @@
 #define IDS_COLOR_4BIT                 2904
 #define IDS_COLOR_8BIT                 2908
 #define IDS_COLOR_16BIT                        2916
+#define IDS_COLOR_24BIT                        2924
 #define IDS_COLOR_32BIT                        2932  
 
 #endif /* __CPL_DESK_RESOURCE_H__ */
index 0b05977..289b381 100644 (file)
@@ -62,14 +62,18 @@ UpdateDisplay(IN HWND hwndDlg)
        LoadString(hApplet, IDS_PIXEL, Pixel, sizeof(Pixel) / sizeof(TCHAR));
        _stprintf(Buffer, Pixel, CurrentDisplayDevice->CurrentSettings->dmPelsWidth, CurrentDisplayDevice->CurrentSettings->dmPelsHeight, Pixel);
        SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION_TEXT, WM_SETTEXT, 0, (LPARAM)Buffer);
-       
+               
+
        for (index = 0; index < CurrentDisplayDevice->ResolutionsCount; index++)
+       {               
+
                if (CurrentDisplayDevice->Resolutions[index].dmPelsWidth == CurrentDisplayDevice->CurrentSettings->dmPelsWidth &&
                    CurrentDisplayDevice->Resolutions[index].dmPelsHeight == CurrentDisplayDevice->CurrentSettings->dmPelsHeight)
                {
                        SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION, TBM_SETPOS, TRUE, index);
                        break;
                }
+       }
        if (LoadString(hApplet, (2900 + CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) / sizeof(TCHAR))) 
                SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, -1, (LPARAM)Buffer);
 }
index 8cd3b1e..172d4c6 100644 (file)
@@ -76,7 +76,7 @@ BEGIN
     IDS_COLOR_4BIT "16 färger"\r
     IDS_COLOR_8BIT "256 färger"\r
     IDS_COLOR_16BIT "65 536 färger (16 Bit)"\r
-    IDS_COLOR_32BIT "16,7 miljoner färger (24 Bit)"\r
+    IDS_COLOR_24BIT "16,7 miljoner färger (24 Bit)"\r
     IDS_COLOR_32BIT "16,7 miljoner färger (32 Bit)"\r
     IDS_PIXEL "%lux%lu Pixlar"\r
 END\r