summaryrefslogtreecommitdiffstats
path: root/otherlibs/graph/libgraph.h
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1996-09-03 08:25:04 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1996-09-03 08:25:04 +0000
commit7fb9cd28d0cfbca9c91a96fefe5a730cab3d4804 (patch)
tree4dc85ae13f3092b0348f905f7f1f99f1341bee49 /otherlibs/graph/libgraph.h
parent245aadbb3704f87afb09489ffbb0bf1e827fa07a (diff)
* Ne pas fermer la connexion au display a chaque close_graph(), car
certains pixmaps peuvent etre encore vivants et ca fait n'importe quoi quand le GC les libere plus tard, alors qu'une nouvelle connexion a ete ouverte. * Ajout de quelques includes manquants. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@950 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/graph/libgraph.h')
-rw-r--r--otherlibs/graph/libgraph.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/graph/libgraph.h b/otherlibs/graph/libgraph.h
index 6ec1e6720..fb3584f5e 100644
--- a/otherlibs/graph/libgraph.h
+++ b/otherlibs/graph/libgraph.h
@@ -22,7 +22,7 @@ struct canvas {
GC gc; /* The associated graphics context */
};
-Display * grdisplay; /* The display connection */
+extern Display * grdisplay; /* The display connection */
int grscreen; /* The screen number */
Colormap grcolormap; /* The color map */
struct canvas grwindow; /* The graphics window */
@@ -68,3 +68,4 @@ unsigned long gr_pixel_rgb();
int gr_rgb_pixel();
void gr_handle_simple_event();
void gr_enqueue_char();
+void gr_init_color_cache();