components/prboom/d_main.c
//
// D_Wipe
//
// CPhipps - moved the screen wipe code from D_Display to here
// The screens to wipe between are already stored, this just does the timing
// and screen updating
D_Wipe
CPhipps - moved the screen wipe code from D_Display to here
The screens to wipe between are already stored, this just does the timing
and screen updating
D_Wipe CPhipps - moved the screen wipe code from D_Display to here The screens to wipe between are already stored this just does the timing and screen updating
static void D_Wipe(void)
{
  boolean done;
  int wipestart = I_GetTime () - 1;
  do
    {
      int nowtime, tics;
      do
        {
          I_uSleep(5000); 
          nowtime = I_GetTime();
          tics = nowtime - wipestart;
        }
      while (!tics);
      wipestart = nowtime;
      done = wipe_ScreenWipe(tics);
      I_UpdateNoBlit();
      M_Drawer();                   
      I_FinishUpdate();             
    }
  while (!done);
}
static void D_Wipe ( void ) { boolean done ; int wipestart = I_GetTime ( ) - 1 ; do { int nowtime , tics ; do { I_uSleep ( 5000 ) ; nowtime = I_GetTime ( ) ; tics = nowtime - wipestart ; } while ( ! tics ) ; wipestart = nowtime ; done = wipe_ScreenWipe ( tics ) ; I_UpdateNoBlit ( ) ; M_Drawer ( ) ; I_FinishUpdate ( ) ; } while ( ! done ) ; }
D_Wipe
CPhipps - moved the screen wipe code from D_Display to here
The screens to wipe between are already stored, this just does the timing
and screen updating
D_Wipe CPhipps - moved the screen wipe code from D_Display to here The screens to wipe between are already stored this just does the timing and screen updating
// CPhipps - don't thrash cpu in this loop // menu is drawn even on top of wipes // page flip or blit buffer