Ignore:
Timestamp:
Nov 10, 2005, 9:41:13 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • absolute shitloads of 64 bit fixes.
File:
1 edited

Legend:

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

    r2 r17  
    22
    33
    4 void transp_put(image *im, image *screen, uchar *table, int x, int y)
     4void transp_put(image *im, image *screen, uint8_t *table, int x, int y)
    55{
    66  short cx1,cy1,cx2,cy2;
     
    3232  int xe=xs+xl;
    3333
    34   uchar *isl=im->scan_line(ys)+xs;
    35   uchar *ssl=screen->scan_line(y)+x;
     34  uint8_t *isl=im->scan_line(ys)+xs;
     35  uint8_t *ssl=screen->scan_line(y)+x;
    3636  int iw=im->width(),sw=screen->width();
    3737
    3838  for (int iy=ys;iy<ye;iy++,y++,isl+=iw,ssl+=sw)
    3939  {
    40     uchar *s=ssl,*i=isl;
     40    uint8_t *s=ssl,*i=isl;
    4141    for (int ix=xs;ix<xe;ix++,s++,i++)
    4242    {
     
    5050
    5151/*
    52 void transp_put(image *im, image *screen, uchar *table, int x, int y)
     52void transp_put(image *im, image *screen, uint8_t *table, int x, int y)
    5353{
    5454  short cx1,cy1,cx2,cy2;
     
    8080  int xe=xs+xl;
    8181
    82   uchar *isl=im->scan_line(ys)+xs;
    83   uchar *ssl=screen->scan_line(y)+x;
     82  uint8_t *isl=im->scan_line(ys)+xs;
     83  uint8_t *ssl=screen->scan_line(y)+x;
    8484  int iw=im->width(),sw=screen->width();
    8585
    8686  for (int iy=ys;iy<ye;iy++,y++,isl+=iw,ssl+=sw)
    8787  {
    88     uchar *s=ssl,*i=isl;
     88    uint8_t *s=ssl,*i=isl;
    8989    for (int ix=xs;ix<xe;ix++,s++,i++)
    9090      *s=table[((*i)<<8)|(*s)];
Note: See TracChangeset for help on using the changeset viewer.