diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-05-10 22:44:27 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-05-10 22:44:27 +0000 |
commit | 2c396fea9f4b183f5a2739a9ebc5076b0374d225 (patch) | |
tree | 281f5a515744e4cfd3621cd39cf34e326de40695 /gdk/linux-fb/gdkdrawable-fb2.c | |
parent | 6e70564088058293c0e81094240b1fb10c74defe (diff) | |
download | gdk-pixbuf-2c396fea9f4b183f5a2739a9ebc5076b0374d225.tar.gz |
Make sure you can compile out the implementation/wrapper assert macros.
2001-05-10 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkprivate-fb.h:
Make sure you can compile out the implementation/wrapper assert
macros.
* gdk/linux-fb/gdkdrawable-fb2.c:
Check implementation/wrappers, initialize type for pixmap dummys.
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
Hide the cursor if reading from the screen.
* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
Fix sign bug in tiling code.
* gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
Handle background pixmaps.
Diffstat (limited to 'gdk/linux-fb/gdkdrawable-fb2.c')
-rw-r--r-- | gdk/linux-fb/gdkdrawable-fb2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdk/linux-fb/gdkdrawable-fb2.c b/gdk/linux-fb/gdkdrawable-fb2.c index a006401a1..5df25c3be 100644 --- a/gdk/linux-fb/gdkdrawable-fb2.c +++ b/gdk/linux-fb/gdkdrawable-fb2.c @@ -311,6 +311,8 @@ gdk_fb_clip_region (GdkDrawable *drawable, GdkDrawableFBData *private; GdkWindowObject *parent; + GDK_CHECK_IMPL (drawable); + private = GDK_DRAWABLE_FBDATA (drawable); g_assert(!GDK_IS_WINDOW (private->wrapper) || @@ -588,6 +590,8 @@ gdk_fb_drawing_context_init (GdkFBDrawingContext *dc, dc->bg_relto = private->wrapper; dc->draw_bg = draw_bg; + GDK_CHECK_IMPL (drawable); + if (GDK_IS_WINDOW (private->wrapper)) { dc->bgpm = GDK_WINDOW_P (private->wrapper)->bg_pixmap; @@ -651,6 +655,9 @@ gdk_fb_draw_drawable_2 (GdkDrawable *drawable, GdkFBDrawingContext *dc, dc_data; dc = &dc_data; + GDK_CHECK_IMPL (src); + GDK_CHECK_IMPL (drawable); + gdk_fb_drawing_context_init (dc, drawable, gc, draw_bg, do_clipping); gdk_fb_draw_drawable_3 (drawable, gc, src, dc, xsrc, ysrc, xdest, ydest, width, height); gdk_fb_drawing_context_finalize (dc); @@ -680,6 +687,9 @@ gdk_fb_draw_drawable_3 (GdkDrawable *drawable, g_assert (gc); + GDK_CHECK_IMPL (src); + GDK_CHECK_IMPL (drawable); + if (GDK_IS_WINDOW (private->wrapper)) { if (!GDK_WINDOW_IS_MAPPED (private->wrapper)) @@ -797,6 +807,7 @@ gdk_fb_draw_drawable (GdkDrawable *drawable, else src_impl = GDK_DRAWABLE_IMPL (src); + GDK_CHECK_IMPL (drawable); gdk_fb_draw_drawable_2 (drawable, gc, src_impl , xsrc, ysrc, xdest, ydest, width, height, TRUE, TRUE); } @@ -1188,6 +1199,7 @@ _gdk_fb_draw_glyphs (GdkDrawable *drawable, /* Fake its existence as a pixmap */ + ((GTypeInstance *)&pixmap)->g_class = g_type_class_peek (_gdk_pixmap_impl_get_type ()); pixmap.drawable_data.abs_x = 0; pixmap.drawable_data.abs_y = 0; pixmap.drawable_data.depth = 78; @@ -1275,6 +1287,9 @@ gdk_fb_draw_image (GdkDrawable *drawable, /* Fake its existence as a pixmap */ memset (&fbd, 0, sizeof(fbd)); + + ((GTypeInstance *)&fbd)->g_class = g_type_class_peek (_gdk_pixmap_impl_get_type ()); + fbd.drawable_data.mem = image->mem; fbd.drawable_data.rowstride = image->bpl; fbd.drawable_data.width = fbd.drawable_data.lim_x = image->width; |