summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-09-20 21:05:45 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-09-20 21:05:45 +0000
commit0989d8ed833827100de59d6adb53795a708873c2 (patch)
treedb8470e162b7865711da2b5bf839f8f0e420bbfa /gdk
parenta1f5f7ee6c95e51a046c8a0e95e385efd0c6eb90 (diff)
downloadgdk-pixbuf-0989d8ed833827100de59d6adb53795a708873c2.tar.gz
Remove unnecessary call to gdk_image_new_bitmap().
Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary call to gdk_image_new_bitmap().
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkrgb.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c
index bedce4067..4c178b217 100644
--- a/gdk/gdkrgb.c
+++ b/gdk/gdkrgb.c
@@ -615,15 +615,9 @@ gdk_rgb_allocate_images (GdkRgbInfo *image_info,
for (i = 0; i < n_images; i++)
{
- if (image_info->bitmap)
- /* Use malloc() instead of g_malloc since X will free() this mem */
- image_info->static_image[i] = gdk_image_new_bitmap (image_info->visual,
- (gpointer) malloc (REGION_WIDTH * REGION_HEIGHT >> 3),
- REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT);
- else
- image_info->static_image[i] = gdk_image_new (shared ? GDK_IMAGE_SHARED : GDK_IMAGE_NORMAL,
- image_info->visual,
- REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT);
+ image_info->static_image[i] = gdk_image_new (shared ? GDK_IMAGE_SHARED : GDK_IMAGE_NORMAL,
+ image_info->visual,
+ REGION_WIDTH * (N_REGIONS / n_images), REGION_HEIGHT);
if (!image_info->static_image[i])
{