*fix* using variable length array looks even better

git-svn-id: http://tint2.googlecode.com/svn/trunk@211 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85 2009-09-30 17:52:32 +00:00
parent d7b705e03d
commit 2ded92352d

View file

@ -201,12 +201,11 @@ void get_icon (Task *tsk)
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 = malloc (w * h * sizeof (DATA32));
DATA32 icon_data[w * h];
int length = w * h;
for (i = 0; i < length; ++i)
icon_data[i] = tmp_data[i];
img = imlib_create_image_using_copied_data (w, h, icon_data);
free(icon_data);
img = imlib_create_image_using_data (w, h, icon_data);
#else
img = imlib_create_image_using_data (w, h, (DATA32*)tmp_data);
#endif