From a8e7f4137a546286dacccc5da004c3f939f44424 Mon Sep 17 00:00:00 2001 From: o9000 Date: Mon, 25 Jan 2016 18:26:17 +0100 Subject: [PATCH] Fix crash on 32-bit --- src/taskbar/task.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/taskbar/task.c b/src/taskbar/task.c index ad52ddc..f7eb5ab 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -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