diff options
author | Alex Larsson <alexl@redhat.com> | 2001-07-26 20:07:08 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-07-26 20:07:08 +0000 |
commit | c16e87bcba46d6f84c86aaad0510021f02ab0f9b (patch) | |
tree | f2641507e2df3637c7dbceb38468cb4d7ef4fd82 /gdk/linux-fb | |
parent | e70939234cf3af180b4d2a695a0076b4538a3889 (diff) | |
download | gdk-pixbuf-c16e87bcba46d6f84c86aaad0510021f02ab0f9b.tar.gz |
Initialize image->bits_per_pixel from the drawable, not from the root
2001-07-26 Alex Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
Initialize image->bits_per_pixel from the drawable, not from
the root window.
* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
Fix cast. argument is an IMPL already.
Diffstat (limited to 'gdk/linux-fb')
-rw-r--r-- | gdk/linux-fb/gdkdrawable-fb2.c | 2 | ||||
-rw-r--r-- | gdk/linux-fb/gdkimage-fb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdk/linux-fb/gdkdrawable-fb2.c b/gdk/linux-fb/gdkdrawable-fb2.c index 5df25c3be..471ced65d 100644 --- a/gdk/linux-fb/gdkdrawable-fb2.c +++ b/gdk/linux-fb/gdkdrawable-fb2.c @@ -1304,7 +1304,7 @@ gdk_fb_draw_image (GdkDrawable *drawable, static gint gdk_fb_get_depth (GdkDrawable *drawable) { - return GDK_DRAWABLE_IMPL_FBDATA (drawable)->depth; + return GDK_DRAWABLE_FBDATA (drawable)->depth; } static GdkVisual* diff --git a/gdk/linux-fb/gdkimage-fb.c b/gdk/linux-fb/gdkimage-fb.c index a698f11a4..10609fa00 100644 --- a/gdk/linux-fb/gdkimage-fb.c +++ b/gdk/linux-fb/gdkimage-fb.c @@ -184,7 +184,7 @@ _gdk_fb_get_image (GdkDrawable *drawable, image->visual = gdk_drawable_get_visual (drawable); image->width = width; image->height = height; - image->bits_per_pixel = GDK_DRAWABLE_IMPL_FBDATA (gdk_parent_root)->depth; + image->bits_per_pixel = GDK_DRAWABLE_FBDATA (drawable)->depth; image->depth = image->bits_per_pixel; if (image->bits_per_pixel <= 8) |