*fix* image rendering in real_transparency mode fixed (imlib_render_image does not work correctly)

git-svn-id: http://tint2.googlecode.com/svn/trunk@318 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85
2010-01-04 16:25:17 +00:00
parent 404d84afd3
commit 6cdf27ddfd
5 changed files with 45 additions and 31 deletions

View File

@@ -313,8 +313,13 @@ void draw_task_icon (Task *tsk, int text_width, int active)
imlib_context_set_image (tsk->icon_active);
pmap = &tsk->area.pix_active.pmap;
}
imlib_context_set_drawable (*pmap);
imlib_render_image_on_drawable (pos_x, panel->g_task.icon_posy);
if (real_transparency) {
render_image(*pmap, pos_x, panel->g_task.icon_posy, imlib_image_get_width(), imlib_image_get_height() );
}
else {
imlib_context_set_drawable (*pmap);
imlib_render_image_on_drawable (pos_x, panel->g_task.icon_posy);
}
}