diff options
author | dscho <dscho> | 2003-02-09 15:04:00 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-02-09 15:04:00 +0000 |
commit | 5030d53ff08665d27e388244aa22b272716240bc (patch) | |
tree | 64aa4ced924efed1e8c66579fce4e93ef97499d6 /tableinitcmtemplate.c | |
parent | f86f9cec24a85bff17b4635f09c00513a2c356c3 (diff) | |
download | libtdevnc-5030d53f.tar.gz libtdevnc-5030d53f.zip |
converted CARD{8,16,32} to uint{8,16,32}_t and included support for stdint.h
Diffstat (limited to 'tableinitcmtemplate.c')
-rw-r--r-- | tableinitcmtemplate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tableinitcmtemplate.c b/tableinitcmtemplate.c index 2d10ea5..df01b23 100644 --- a/tableinitcmtemplate.c +++ b/tableinitcmtemplate.c @@ -37,7 +37,7 @@ #error "It is included as part of translate.c" #endif -#define OUT_T CONCAT2E(CARD,OUT) +#define OUT_T CONCAT3E(uint,OUT,_t) #define SwapOUT(x) CONCAT2E(Swap,OUT(x)) #define rfbInitColourMapSingleTableOUT \ CONCAT2E(rfbInitColourMapSingleTable,OUT) @@ -46,9 +46,9 @@ static void rfbInitColourMapSingleTableOUT(char **table, rfbPixelFormat *in, rfbPixelFormat *out,rfbColourMap* colourMap) { - CARD32 i, r, g, b; + uint32_t i, r, g, b; OUT_T *t; - CARD32 nEntries = 1 << in->bitsPerPixel; + uint32_t nEntries = 1 << in->bitsPerPixel; int shift = colourMap->is16?16:8; if (*table) free(*table); |