Bug in "Stars"

michael sweet sweetmr at SCT60A.SUNYCT.EDU
Tue Jan 29 06:30:28 AEST 1991


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 at sct60a.sunyct.edu
                                        Delphi:   DODGECOLT
------------------------------------------------------------------------------



More information about the Comp.sys.sgi mailing list