Mercurial > audlegacy
changeset 1853:1c19a0dca33d trunk
[svn] - resize fixes
author | nenolod |
---|---|
date | Mon, 09 Oct 2006 03:56:32 -0700 |
parents | 01103f911aa5 |
children | 2ad0069dc0b2 |
files | ChangeLog audacious/mainwin.c |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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(); }