1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[ui] fix language button background on XP

Needed to set ILC_MASK to avoid rendering a black background on XP.
This commit is contained in:
Quppa 2015-04-19 10:12:51 +10:00
parent 1b65a6eac0
commit 67565203df

View file

@ -1702,7 +1702,7 @@ void InitDialog(HWND hDlg)
hLangToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | TBSTYLE_TRANSPARENT | CCS_NOPARENTALIGN | CCS_NORESIZE | CCS_NODIVIDER, 0, 0, 0, 0, hMainDialog, NULL, hMainInstance, NULL); hLangToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | TBSTYLE_TRANSPARENT | CCS_NOPARENTALIGN | CCS_NORESIZE | CCS_NODIVIDER, 0, 0, 0, 0, hMainDialog, NULL, hMainInstance, NULL);
hLangToolbarImageList = ImageList_Create(i16, i16, ILC_COLOR32, 1, 0); hLangToolbarImageList = ImageList_Create(i16, i16, ILC_MASK | ILC_COLOR32, 1, 0);
ImageList_AddIcon(hLangToolbarImageList, hIconLang); ImageList_AddIcon(hLangToolbarImageList, hIconLang);