More pager improvements. Pager now determines correctly which text is read by the...
[rodin/chimara.git] / interpreters / frotz.patch
1 --- frotz/glkscreen.c   2009-11-14 17:44:15.617976131 +0100
2 +++ frotz/glkscreen.c.new       2009-11-14 17:44:10.367194781 +0100
3 @@ -305,13 +305,6 @@
4                         return;
5         }
6  
7 -       if (gos_upper && gos_curwin == gos_upper) {
8 -               if (cury > mach_status_ht) {
9 -                       mach_status_ht = cury;
10 -                       reset_status_ht();
11 -               }
12 -       }
13 -
14         /* check fixed flag in header, game can change it at whim */
15         if (gos_curwin == gos_lower)
16         {
17 @@ -583,8 +576,15 @@
18  {
19         cury = zargs[0];
20         curx = zargs[1];
21 -       if (gos_upper)
22 +
23 +       if (gos_upper) {
24 +               if (cury > mach_status_ht) {
25 +                       mach_status_ht = cury;
26 +                       reset_status_ht();
27 +               }
28 +
29                 glk_window_move_cursor(gos_upper, curx - 1, cury - 1);
30 +       }
31  }
32  
33  /*