summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1999-11-18 13:33:53 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1999-11-18 13:33:53 +0000
commit0acf301921fbd0cbf2d75dd06aec766095292355 (patch)
treeb3f3df566c63837e4285cc14e856fb02a8cdfeb7
parente167b62db646c6b206b04468fbb3bced97e7b99c (diff)
Lors du retaillage, ne pas oublier de remettre la fonte courante comme fonte par defaut du backing store
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2562 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--otherlibs/graph/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/otherlibs/graph/open.c b/otherlibs/graph/open.c
index d222198ac..cc00620df 100644
--- a/otherlibs/graph/open.c
+++ b/otherlibs/graph/open.c
@@ -292,6 +292,8 @@ void gr_handle_simple_event(XEvent *e)
XFillRectangle(grdisplay, newbstore.win, newbstore.gc,
0, 0, newbstore.w, newbstore.h);
XSetForeground(grdisplay, newbstore.gc, grcolor);
+ if (grfont != NULL)
+ XSetFont(grdisplay, newbstore.gc, grfont->fid);
/* Copy the old backing store into the new one */
XCopyArea(grdisplay, grbstore.win, newbstore.win, newbstore.gc,