Ignore:
Timestamp:
Apr 23, 2008, 11:24:34 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Switch a few unsigned int variables to size_t where appropriate.
  • Synchronise parameter types in the C++ bindings with the C API.
Location:
libcaca/trunk/cxx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/cucul++.cpp

    r2304 r2313  
    280280}
    281281
    282 long int Cucul::importMemory(void const *buf, unsigned long int len, char const *fmt)
     282long int Cucul::importMemory(void const *buf, size_t len, char const *fmt)
    283283{
    284284    return cucul_import_memory(cv, buf, len, fmt);
     
    295295}
    296296
    297 void *Cucul::exportMemory(char const *fmt, unsigned long int *len)
     297void *Cucul::exportMemory(char const *fmt, size_t *len)
    298298{
    299299    return cucul_export_memory(cv, fmt, len);
     
    309309}
    310310
    311 void Dither::setPalette(unsigned int r[], unsigned int g[], unsigned int b[], unsigned int a[])
     311void Dither::setPalette(uint32_t r[], uint32_t g[], uint32_t b[], uint32_t a[])
    312312{
    313313    cucul_set_dither_palette(dither, r, g, b, a);
  • libcaca/trunk/cxx/cucul++.h

    r2304 r2313  
    6969    ~Dither();
    7070
    71     void setPalette(unsigned int r[], unsigned int g[],
    72                     unsigned int b[], unsigned int a[]);
     71    void setPalette(uint32_t r[], uint32_t g[],
     72                    uint32_t b[], uint32_t a[]);
    7373    void setBrightness(float);
    7474    void setGamma(float);
     
    137137
    138138    char const * const * getImportList(void);
    139     long int importMemory(void const *, unsigned long int, char const *);
     139    long int importMemory(void const *, size_t, char const *);
    140140    long int importFile(char const *, char const *);
    141141    char const * const * getExportList(void);
    142     void *exportMemory(char const *, unsigned long int *);
     142    void *exportMemory(char const *, size_t *);
    143143
    144144    static int Rand(int, int);
    145145    static char const * getVersion();
     146
    146147 protected:
    147148    cucul_canvas_t *get_cucul_canvas_t();
Note: See TracChangeset for help on using the changeset viewer.