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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/graph/point_col.c b/otherlibs/graph/point_col.c
index 8df0dfaf0..ffcdc2100 100644
--- a/otherlibs/graph/point_col.c
+++ b/otherlibs/graph/point_col.c
@@ -15,16 +15,16 @@
#include "libgraph.h"
-value gr_point_color(value vx, value vy)
+value caml_gr_point_color(value vx, value vy)
{
int x = Int_val(vx);
int y = Int_val(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));
+ caml_gr_check_open();
+ im = XGetImage(caml_gr_display, caml_gr_bstore.win, x, Bcvt(y), 1, 1, (-1), ZPixmap);
+ rgb = caml_gr_rgb_pixel(XGetPixel(im, 0, 0));
XDestroyImage(im);
return Val_int(rgb);
}