[comp.sys.sgi] Bug in "Stars"

sweetmr@SCT60A.SUNYCT.EDU (michael sweet) (01/29/91)

Sorry folks-

 Seems a bug slipped through in my "Stars" program.  The fix is simple and
 requires the movement of 1 line of code out of an 'if' statement...

 On line 541, the call to redraw() should be outside the 'if', like so:

OLD:

      last_yorg  = win_yorg;
      last_xsize = win_xsize;
      last_ysize = win_ysize;
      redraw();
     };
    break;

NEW:

           last_yorg  = win_yorg;
           last_xsize = win_xsize;
           last_ysize = win_ysize;
          };
         redraw();
         break;


 This change will make sure the window is redrawn.  The bug made itself known
 when "Stars" was made full-screen and pushed to the background;  whenever
 another window was manipulated, the "Stars" window would not erase the screen,
 making quite a mess of things.


 -Mike Sweet

------------------------------------------------------------------------------
  TASC                                  (315) 724-1100 (voice)
  555 French Road                       (315) 724-2031 (fax)
  New Hartford, NY  13413               Internet: sweetmr@sct60a.sunyct.edu
                                        Delphi:   DODGECOLT
------------------------------------------------------------------------------