summaryrefslogtreecommitdiff
path: root/gdk/linux-fb/gdkdrawable-fb2.c
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2001-07-26 20:07:08 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-07-26 20:07:08 +0000
commitc16e87bcba46d6f84c86aaad0510021f02ab0f9b (patch)
treef2641507e2df3637c7dbceb38468cb4d7ef4fd82 /gdk/linux-fb/gdkdrawable-fb2.c
parente70939234cf3af180b4d2a695a0076b4538a3889 (diff)
downloadgtk+-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/gdkdrawable-fb2.c')
-rw-r--r--gdk/linux-fb/gdkdrawable-fb2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/linux-fb/gdkdrawable-fb2.c b/gdk/linux-fb/gdkdrawable-fb2.c
index 5df25c3be6..471ced65d5 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*