mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01:00
parent
3bd027f068
commit
c2d57b6898
@ -3015,7 +3015,7 @@ void OS_Windows::set_native_icon(const String &p_filename) {
|
||||
pos += sizeof(WORD);
|
||||
f->seek(pos);
|
||||
|
||||
icon_dir = (ICONDIR *)memrealloc(icon_dir, 3 * sizeof(WORD) + icon_dir->idCount * sizeof(ICONDIRENTRY));
|
||||
icon_dir = (ICONDIR *)memrealloc(icon_dir, sizeof(ICONDIR) + (icon_dir->idCount * sizeof(ICONDIRENTRY)));
|
||||
f->get_buffer((uint8_t *)&icon_dir->idEntries[0], icon_dir->idCount * sizeof(ICONDIRENTRY));
|
||||
|
||||
int small_icon_index = -1; // Select 16x16 with largest color count
|
||||
|
Loading…
Reference in New Issue
Block a user