# HG changeset patch # User nenolod # Date 1160391392 25200 # Node ID 1c19a0dca33da61005169f69c420060107a1e842 # Parent 01103f911aa5bec1026cdb2a8f8dc0ce6fb7ca90 [svn] - resize fixes diff -r 01103f911aa5 -r 1c19a0dca33d ChangeLog --- a/ChangeLog Mon Oct 09 03:50:11 2006 -0700 +++ b/ChangeLog Mon Oct 09 03:56:32 2006 -0700 @@ -1,3 +1,11 @@ +2006-10-09 10:50:11 +0000 William Pitcock <nenolod@nenolod.net> + revision [2661] + - avoid unnecessary resizing + + trunk/audacious/util.c | 3 +++ + 1 file changed, 3 insertions(+) + + 2006-10-09 10:44:50 +0000 William Pitcock <nenolod@nenolod.net> revision [2659] - add audacious_pixmap_resize() for resizing a skin pixmap on demand. diff -r 01103f911aa5 -r 1c19a0dca33d audacious/mainwin.c --- a/audacious/mainwin.c Mon Oct 09 03:50:11 2006 -0700 +++ b/audacious/mainwin.c Mon Oct 09 03:56:32 2006 -0700 @@ -968,10 +968,12 @@ bmp_active_skin->properties.mainwin_width, cfg.player_shaded ? MAINWIN_SHADED_HEIGHT : bmp_active_skin->properties.mainwin_height, GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE); - mainwin_bg = audacious_pixmap_resize(mainwin->window, mainwin_gc, mainwin_bg, - bmp_active_skin->properties.mainwin_width, - bmp_active_skin->properties.mainwin_height); + g_object_unref(mainwin_bg); + mainwin_bg = gdk_pixmap_new(mainwin->window, + bmp_active_skin->properties.mainwin_width, + bmp_active_skin->properties.mainwin_height, -1); mainwin_set_back_pixmap(); + widget_list_change_pixmap(mainwin_wlist, mainwin_bg); gdk_flush(); }