Root/gnuplot-gfx/patches/020-ggi-setmode.patch

Source at commit 1b3135c created 9 years 8 days ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1Index: gnuplot-4.4.0/term/ggi.trm
2===================================================================
3--- gnuplot-4.4.0.orig/term/ggi.trm 2011-01-04 21:47:00.000000000 +0100
4+++ gnuplot-4.4.0/term/ggi.trm 2011-01-05 11:52:43.000000000 +0100
5@@ -374,6 +374,7 @@
6     /* user specified mode */
7     if (!ggiParseMode(GGI_mode_spec, &mode)) {
8         mode.frames = GGI_frames;
9+ ggiCheckMode(GGIvisual, &mode);
10         if (!ggiSetMode(GGIvisual, &mode)) {
11         success = 1;
12         }
13@@ -381,8 +382,11 @@
14     }
15 
16     if (!success) {
17- /* try the default mode */
18- if(ggiSetSimpleMode(GGIvisual,GGI_AUTO,GGI_AUTO,GGI_frames,GT_AUTO)) {
19+ /* try the default mode */
20+ ggiParseMode("", &mode);
21+ ggiCheckMode(GGIvisual, &mode);
22+
23+ if (ggiSetMode(GGIvisual, &mode)) {
24         ggiPanic("(GGI_init() unable to set default mode\n");
25         GGIvisual = (ggi_visual_t)0;
26     }
27

Archive Download this file



interactive