Fix crash on 32-bit

This commit is contained in:
o9000 2016-01-25 18:26:17 +01:00
parent 27715a5dbb
commit a8e7f4137a

View file

@ -262,15 +262,10 @@ void task_update_icon(Task *task)
gulong *tmp_data;
tmp_data = get_best_icon(data, get_icon_count(data, i), i, &w, &h, panel->g_task.icon_size1);
#ifdef __x86_64__
DATA32 icon_data[w * h];
int length = w * h;
for (int j = 0; j < length; ++j)
for (int j = 0; j < w * h; ++j)
icon_data[j] = tmp_data[j];
img = imlib_create_image_using_copied_data(w, h, icon_data);
#else
img = imlib_create_image_using_data(w, h, (DATA32 *)tmp_data);
#endif
XFree(data);
} else {
// get Pixmap icon