contrib/xmms/xmms_doublesize.patch
2009-02-05 20:26:14 +02:00

12 lines
528 B
Diff

--- xmms-1.2.11/xmms/util.c 2006-11-05 12:29:59.000000000 +0800
+++ xmms-1.2.11/xmms/util.c 2006-11-05 12:30:01.000000000 +0800
@@ -175,7 +175,7 @@ GdkImage *create_dblsize_image(GdkImage
* This needs to be optimized
*/
- dblimg = gdk_image_new(GDK_IMAGE_NORMAL, gdk_visual_get_best(), img->width << 1, img->height << 1);
+ dblimg = gdk_image_new(GDK_IMAGE_NORMAL, gdk_visual_get_best_with_depth(img->depth), img->width << 1, img->height << 1);
if (dblimg->bpp == 1)
{
register guint8 *srcptr, *ptr, *ptr2, pix;