summaryrefslogtreecommitdiffstats
path: root/otherlibs/graph/point_col.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/graph/point_col.c')
-rw-r--r--otherlibs/graph/point_col.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/otherlibs/graph/point_col.c b/otherlibs/graph/point_col.c
index b45414166..541c653e3 100644
--- a/otherlibs/graph/point_col.c
+++ b/otherlibs/graph/point_col.c
@@ -21,6 +21,7 @@ value gr_point_color(vx, vy)
XImage * im;
int rgb;
+ gr_check_open();
im = XGetImage(grdisplay, grbstore.win, x, Bcvt(y), 1, 1, (-1), ZPixmap);
rgb = gr_rgb_pixel(XGetPixel(im, 0, 0));
XDestroyImage(im);