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

Legend:

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

    r16 r17  
    2020#include "netcfg.hpp"
    2121
    22 extern uchar major_version;
    23 extern uchar minor_version;
     22extern uint8_t major_version;
     23extern uint8_t minor_version;
    2424extern int has_joystick;
    2525
     
    6060
    6161            *l_statbar_logo_x,*l_statbar_logo_y;
    62 uchar chatting_enabled=0;
     62uint8_t chatting_enabled=0;
    6363
    6464extern void scatter_line(int x1, int y1, int x2, int y2, int c, int s);
     
    19091909    {
    19101910      palette *p=pal->copy();
    1911       uchar *addr=(uchar *)p->addr();
     1911      uint8_t *addr=(uint8_t *)p->addr();
    19121912      int r,g,b;
    19131913      int ra=lnumber_value(CAR(args)); args=CDR(args);
     
    19161916      for (int i=0;i<256;i++)
    19171917      {
    1918         r=(int)*addr+ra; if (r>255) r=255; else if (r<0) r=0; *addr=(uchar)r; addr++;
    1919         g=(int)*addr+ga; if (g>255) g=255; else if (g<0) g=0; *addr=(uchar)g; addr++;
    1920         b=(int)*addr+ba; if (b>255) b=255; else if (b<0) b=0; *addr=(uchar)b; addr++;
     1918        r=(int)*addr+ra; if (r>255) r=255; else if (r<0) r=0; *addr=(uint8_t)r; addr++;
     1919        g=(int)*addr+ga; if (g>255) g=255; else if (g<0) g=0; *addr=(uint8_t)g; addr++;
     1920        b=(int)*addr+ba; if (b>255) b=255; else if (b<0) b=0; *addr=(uint8_t)b; addr++;
    19211921      }
    19221922      p->load();
Note: See TracChangeset for help on using the changeset viewer.