2ec1e00a32
* Fix wrong visual when clicking the 'D' button to resize; from FreeBSD
13 lines
543 B
Plaintext
13 lines
543 B
Plaintext
$OpenBSD: patch-xmms_util_c,v 1.1 2010/12/05 15:52:19 naddy Exp $
|
|
--- xmms/util.c.orig Sun Jul 16 15:40:04 2006
|
|
+++ xmms/util.c Sun Dec 5 16:25:05 2010
|
|
@@ -175,7 +175,7 @@ GdkImage *create_dblsize_image(GdkImage * img)
|
|
* 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)
|
|
{
|
|
char *srcptr, *ptr, *ptr2;
|