x11: #ifdef USE_SHM function where it belongs

Otherwise, we end up with an unused function warning without SHM
This commit is contained in:
Benjamin Otte 2011-04-22 00:46:20 +02:00
parent baf8bf967d
commit 65c1419742

View File

@ -1362,6 +1362,7 @@ shm_pixmap_info_destroy (gpointer data)
}
#ifdef USE_SHM
/* Returns FALSE if we can't get a shm pixmap */
static gboolean
get_shm_pixmap_for_image (Display *xdisplay,
@ -1408,7 +1409,6 @@ get_shm_pixmap_for_image (Display *xdisplay,
return TRUE;
}
#ifdef USE_SHM
/* Returns FALSE if drawing with ShmPixmaps is not possible */
static gboolean
draw_with_pixmaps (GdkDrawable *drawable,