Initial commit for changeable icon set

This commit is contained in:
Laci bá
2021-11-14 19:50:05 +01:00
parent e24da32acf
commit a16e39bb62
7 changed files with 160 additions and 63 deletions

View File

@@ -76,7 +76,6 @@
static int first_cat = 0;
static int dpi = 96;
/* Machine category */
static int temp_machine_type, temp_machine, temp_cpu, temp_wait_states, temp_fpu, temp_sync;
@@ -265,13 +264,8 @@ image_list_init(HWND hdlg, int id, const uint8_t *icon_ids)
if (icon_ids[i] == 0)
break;
#if defined(__amd64__) || defined(__aarch64__)
hiconItem = LoadIcon(hinstance, (LPCWSTR) ((uint64_t) icon_ids[i]));
#else
hiconItem = LoadIcon(hinstance, (LPCWSTR) ((uint32_t) icon_ids[i]));
#endif
hiconItem = hIcon[icon_ids[i]];
ImageList_AddIcon(hSmall, hiconItem);
DestroyIcon(hiconItem);
i++;
}