diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-11 05:39:45 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-11 05:39:45 +0000 |
commit | 797c2e6a4597cf9f9b3b3785e5304845b2f217a7 (patch) | |
tree | 4de337cec62dd7f91b35cc367f88b08d5999f172 /gdk/gdkpixbuf-drawable.c | |
parent | 07600fb107101c81ca15255a6f1932fabc735351 (diff) | |
download | gtk+-797c2e6a4597cf9f9b3b3785e5304845b2f217a7.tar.gz |
New function to avoid pointless strdups when creating atoms from static
2005-09-11 Matthias Clasen <mclasen@redhat.com>
* gdk/gdk.symbols:
* gdk/gdkproperty.h:
* gdk/x11/gdkproperty-x11.c (gdk_atom_intern_static_string):
New function to avoid pointless strdups when creating atoms
from static strings.
* gdk/x11/gdkdisplay-x11.c:
* gdk/x11/gdkdnd-x11.c:
* gdk/x11/gdkevents-x11.c:
* gdk/x11/gdkmain-x11.c:
* gdk/x11/gdkproperty-x11.c:
* gdk/x11/gdkselection-x11.c:
* gdk/x11/gdkwindow-x11.c: Use gdk_atom_intern_static_string()
where appropriate.
Diffstat (limited to 'gdk/gdkpixbuf-drawable.c')
-rw-r--r-- | gdk/gdkpixbuf-drawable.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c index c1f69ab0e2..c2f2a06c74 100644 --- a/gdk/gdkpixbuf-drawable.c +++ b/gdk/gdkpixbuf-drawable.c @@ -925,7 +925,6 @@ convert_real_slow (GdkImage *image, gboolean alpha) { int xx, yy; - int bpl; guint8 *orow = pixels; guint8 *o; guint32 pixel; @@ -933,8 +932,7 @@ convert_real_slow (GdkImage *image, guint8 component; int i; - bpl = image->bpl; - v = gdk_colormap_get_visual(cmap); + v = gdk_colormap_get_visual (cmap); if (image->depth != v->depth) { @@ -954,7 +952,7 @@ convert_real_slow (GdkImage *image, o = orow; for (xx = x1; xx < x2; xx++) { - pixel = gdk_image_get_pixel(image, xx, yy); + pixel = gdk_image_get_pixel (image, xx, yy); switch (v->type) { /* I assume this is right for static & greyscale's too? */ |