Change Details
gnuplot-ggi/patches/020-ggi-setmode.patch |
1 | 1 | Index: gnuplot-4.4.0/term/ggi.trm |
2 | 2 | =================================================================== |
3 | 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-04 21:47:45.000000000 +0100 |
5 | 4 | @@ -374,6 +374,7 @@ |
6 | 5 | /* user specified mode */ |
7 | 6 | if (!ggiParseMode(GGI_mode_spec, &mode)) { |
... | ... | |
10 | 10 | if (!ggiSetMode(GGIvisual, &mode)) { |
11 | 11 | success = 1; |
12 | 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 | } |
Download the corresponding diff file