Ignore:
Timestamp:
Mar 6, 2008, 3:18:30 PM (11 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of WATCOMC tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/newlight.cpp

    r56 r90  
    494494
    495495
    496 #ifdef __WATCOMC__
    497 extern "C" {
    498 extern long MAP_PUT(long pad, long screen_addr, long remap, long w);
    499 extern long MAP_PUT2(long dest, long screen_addr, long remap, long w);
    500 } ;
    501 #else
    502496inline long MAP_PUT(long pad, long screen_addr, long remap, long w)
    503497{ while (w--)
     
    518512  return dest_addr;
    519513}
    520 
    521 #endif
    522 
    523514
    524515inline long calc_lv(light_patch *lp, long sx, long sy)
     
    600591    {
    601592      unsigned char *sl=screen->scan_line(lp->y1)+lp->x1,*dest;
    602 #ifdef __WATCOMC__
    603       if (get_vmode()==19) dest=(uchar *)0xa0000+lp->y1*320+lp->x1;
    604       else dest=sl;
    605 #else
    606593      dest=sl;
    607 #endif
    608594     
    609595      int y2=lp->y2;
     
    623609
    624610      uchar *yaddr=screen->scan_line(lp->y1)+lp->x1,*dyaddr;
    625 #ifdef __WATCOMC__
    626       if (get_vmode()==19) dyaddr=((uchar *)0xa0000)+lp->y1*320+lp->x1;
    627       else dyaddr=yaddr;
    628 #else
    629611      dyaddr=yaddr;
    630 #endif
    631612
    632613      for (int y=lp->y1;y<=y2;)
Note: See TracChangeset for help on using the changeset viewer.