Add 24bits mode strings

hope it fix qemu 

svn path=/trunk/; revision=15489
This commit is contained in:
Magnus Olsen 2005-05-25 00:04:12 +00:00
parent 53db168c0d
commit 4f7ea2284f
4 changed files with 8 additions and 3 deletions

View file

@ -98,7 +98,7 @@ BEGIN
IDS_COLOR_4BIT "16 Colors" IDS_COLOR_4BIT "16 Colors"
IDS_COLOR_8BIT "256 Colors" IDS_COLOR_8BIT "256 Colors"
IDS_COLOR_16BIT "High Color (16 Bit)" 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_COLOR_32BIT "True Color (32 Bit)"
IDS_PIXEL "%lux%lu Pixel" IDS_PIXEL "%lux%lu Pixel"
END END

View file

@ -61,6 +61,7 @@
#define IDS_COLOR_4BIT 2904 #define IDS_COLOR_4BIT 2904
#define IDS_COLOR_8BIT 2908 #define IDS_COLOR_8BIT 2908
#define IDS_COLOR_16BIT 2916 #define IDS_COLOR_16BIT 2916
#define IDS_COLOR_24BIT 2924
#define IDS_COLOR_32BIT 2932 #define IDS_COLOR_32BIT 2932
#endif /* __CPL_DESK_RESOURCE_H__ */ #endif /* __CPL_DESK_RESOURCE_H__ */

View file

@ -63,13 +63,17 @@ UpdateDisplay(IN HWND hwndDlg)
_stprintf(Buffer, Pixel, CurrentDisplayDevice->CurrentSettings->dmPelsWidth, CurrentDisplayDevice->CurrentSettings->dmPelsHeight, Pixel); _stprintf(Buffer, Pixel, CurrentDisplayDevice->CurrentSettings->dmPelsWidth, CurrentDisplayDevice->CurrentSettings->dmPelsHeight, Pixel);
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION_TEXT, WM_SETTEXT, 0, (LPARAM)Buffer); SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION_TEXT, WM_SETTEXT, 0, (LPARAM)Buffer);
for (index = 0; index < CurrentDisplayDevice->ResolutionsCount; index++) for (index = 0; index < CurrentDisplayDevice->ResolutionsCount; index++)
{
if (CurrentDisplayDevice->Resolutions[index].dmPelsWidth == CurrentDisplayDevice->CurrentSettings->dmPelsWidth && if (CurrentDisplayDevice->Resolutions[index].dmPelsWidth == CurrentDisplayDevice->CurrentSettings->dmPelsWidth &&
CurrentDisplayDevice->Resolutions[index].dmPelsHeight == CurrentDisplayDevice->CurrentSettings->dmPelsHeight) CurrentDisplayDevice->Resolutions[index].dmPelsHeight == CurrentDisplayDevice->CurrentSettings->dmPelsHeight)
{ {
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION, TBM_SETPOS, TRUE, index); SendDlgItemMessage(hwndDlg, IDC_SETTINGS_RESOLUTION, TBM_SETPOS, TRUE, index);
break; break;
} }
}
if (LoadString(hApplet, (2900 + CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) / sizeof(TCHAR))) if (LoadString(hApplet, (2900 + CurrentDisplayDevice->CurrentSettings->dmBitsPerPel), Buffer, sizeof(Buffer) / sizeof(TCHAR)))
SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, -1, (LPARAM)Buffer); SendDlgItemMessage(hwndDlg, IDC_SETTINGS_BPP, CB_SELECTSTRING, -1, (LPARAM)Buffer);
} }

View file

@ -76,7 +76,7 @@ BEGIN
IDS_COLOR_4BIT "16 färger" IDS_COLOR_4BIT "16 färger"
IDS_COLOR_8BIT "256 färger" IDS_COLOR_8BIT "256 färger"
IDS_COLOR_16BIT "65 536 färger (16 Bit)" IDS_COLOR_16BIT "65 536 färger (16 Bit)"
IDS_COLOR_32BIT "16,7 miljoner färger (24 Bit)" IDS_COLOR_24BIT "16,7 miljoner färger (24 Bit)"
IDS_COLOR_32BIT "16,7 miljoner färger (32 Bit)" IDS_COLOR_32BIT "16,7 miljoner färger (32 Bit)"
IDS_PIXEL "%lux%lu Pixlar" IDS_PIXEL "%lux%lu Pixlar"
END END