summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdrawable-x11.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-15 18:07:42 +0200
committerBenjamin Otte <otte@redhat.com>2010-08-10 21:02:27 +0200
commit9ee51764925907c8212671fd6fd1336584dfcb2a (patch)
tree89d3990ce54fa2364c81f6d2875d97498a164c06 /gdk/x11/gdkdrawable-x11.c
parenta9e99e7f5ba6982db4d54a134738d1ddd30c898c (diff)
downloadgtk+-9ee51764925907c8212671fd6fd1336584dfcb2a.tar.gz
API: remove gdk_draw_point(s)
Diffstat (limited to 'gdk/x11/gdkdrawable-x11.c')
-rw-r--r--gdk/x11/gdkdrawable-x11.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index 4261c6f9be..53cd107ed2 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -65,10 +65,6 @@ static void gdk_x11_draw_drawable (GdkDrawable *drawable,
gint width,
gint height,
GdkDrawable *original_src);
-static void gdk_x11_draw_points (GdkDrawable *drawable,
- GdkGC *gc,
- GdkPoint *points,
- gint npoints);
static cairo_surface_t *gdk_x11_ref_cairo_surface (GdkDrawable *drawable);
@@ -97,7 +93,6 @@ _gdk_drawable_impl_x11_class_init (GdkDrawableImplX11Class *klass)
drawable_class->create_gc = _gdk_x11_gc_new;
drawable_class->draw_rectangle = gdk_x11_draw_rectangle;
drawable_class->draw_drawable_with_src = gdk_x11_draw_drawable;
- drawable_class->draw_points = gdk_x11_draw_points;
drawable_class->ref_cairo_surface = gdk_x11_ref_cairo_surface;
@@ -400,49 +395,6 @@ gdk_x11_draw_drawable (GdkDrawable *drawable,
src_depth, dest_depth);
}
-static void
-gdk_x11_draw_points (GdkDrawable *drawable,
- GdkGC *gc,
- GdkPoint *points,
- gint npoints)
-{
- GdkDrawableImplX11 *impl;
-
- impl = GDK_DRAWABLE_IMPL_X11 (drawable);
-
-
- /* We special-case npoints == 1, because X will merge multiple
- * consecutive XDrawPoint requests into a PolyPoint request
- */
- if (npoints == 1)
- {
- XDrawPoint (GDK_SCREEN_XDISPLAY (impl->screen),
- impl->xid,
- GDK_GC_GET_XGC (gc),
- points[0].x, points[0].y);
- }
- else
- {
- gint i;
- XPoint *tmp_points = g_new (XPoint, npoints);
-
- for (i=0; i<npoints; i++)
- {
- tmp_points[i].x = points[i].x;
- tmp_points[i].y = points[i].y;
- }
-
- XDrawPoints (GDK_SCREEN_XDISPLAY (impl->screen),
- impl->xid,
- GDK_GC_GET_XGC (gc),
- tmp_points,
- npoints,
- CoordModeOrigin);
-
- g_free (tmp_points);
- }
-}
-
static gint
gdk_x11_get_depth (GdkDrawable *drawable)
{