diff options
author | Raph Levien <raph@src.gnome.org> | 1998-08-02 05:39:47 +0000 |
---|---|---|
committer | Raph Levien <raph@src.gnome.org> | 1998-08-02 05:39:47 +0000 |
commit | 7ba4ba0d2fd431a74281a6ace2e75d8b83dc92c2 (patch) | |
tree | 06a8d1c18a33b7ba8ebe318d237a7393e830608c /gdk/gdkrgb.c | |
parent | 8ad52d10249a4ee97fb6b84a8c798f03fa45c7bd (diff) | |
download | gtk+-7ba4ba0d2fd431a74281a6ace2e75d8b83dc92c2.tar.gz |
Made some config changes to make it work better both as a standalone
module (i.e. with Gtk 1.0) and as a module under Gtk 1.1+, i.e. harmonized
with the separate GdkRgb release.
Diffstat (limited to 'gdk/gdkrgb.c')
-rw-r--r-- | gdk/gdkrgb.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index bec679cdba..691e21d5bc 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -27,9 +27,22 @@ #define ENABLE_GRAYSCALE +#ifdef GDK_RGB_STANDALONE + +/* Compiling as a standalone module (i.e. with Gtk 1.0) */ +/* gtk/gtk.h is already included in gdkrgbstub.c */ +#include "config.h" +#include <gdk/gdkprivate.h> + +#else + +/* Compiling as a part of Gtk 1.1 or later */ #include "../config.h" -#include "gdk/gdk.h" -#include "gdk/gdkprivate.h" +#include "gdk.h" +#include "gdkprivate.h" + +#endif + #include "gdkrgb.h" typedef struct _GdkRgbInfo GdkRgbInfo; @@ -2386,8 +2399,10 @@ gdk_draw_rgb_image_core (GdkDrawable *drawable, conv (image, xs0, ys0, width1, height1, buf_ptr, rowstride, x + x0, y + y0, cmap); +#ifndef DONT_ACTUALLY_DRAW gdk_draw_image (drawable, gc, image, xs0, ys0, x + x0, y + y0, width1, height1); +#endif } } } |