Commit 0989d8ed authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

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().
parent a1f5f7ee
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
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().
Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Use the current
......
......@@ -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])
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment