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 /hextile.c | |
parent | f86f9cec24a85bff17b4635f09c00513a2c356c3 (diff) | |
download | libvncserver-5030d53ff08665d27e388244aa22b272716240bc.zip libvncserver-5030d53ff08665d27e388244aa22b272716240bc.tar.gz |
converted CARD{8,16,32} to uint{8,16,32}_t and included support for stdint.h
Diffstat (limited to 'hextile.c')
-rw-r--r-- | hextile.c | 31 |
1 files changed, 15 insertions, 16 deletions
@@ -25,7 +25,6 @@ * USA. */ -#include <stdio.h> #include "rfb.h" static Bool sendHextiles8(rfbClientPtr cl, int x, int y, int w, int h); @@ -90,10 +89,10 @@ rfbSendRectEncodingHextile(cl, x, y, w, h) #define DEFINE_SEND_HEXTILES(bpp) \ \ \ -static Bool subrectEncode##bpp(rfbClientPtr cli, CARD##bpp *data, int w, int h, \ - CARD##bpp bg, CARD##bpp fg, Bool mono); \ -static void testColours##bpp(CARD##bpp *data, int size, Bool *mono, \ - Bool *solid, CARD##bpp *bg, CARD##bpp *fg); \ +static Bool subrectEncode##bpp(rfbClientPtr cli, uint##bpp##_t *data, int w, int h, \ + uint##bpp##_t bg, uint##bpp##_t fg, Bool mono); \ +static void testColours##bpp(uint##bpp##_t *data, int size, Bool *mono, \ + Bool *solid, uint##bpp##_t *bg, uint##bpp##_t *fg); \ \ \ /* \ @@ -108,11 +107,11 @@ sendHextiles##bpp(cl, rx, ry, rw, rh) int x, y, w, h; \ int startUblen; \ char *fbptr; \ - CARD##bpp bg = 0, fg = 0, newBg, newFg; \ + uint##bpp##_t bg = 0, fg = 0, newBg, newFg; \ Bool mono, solid; \ Bool validBg = FALSE; \ Bool validFg = FALSE; \ - CARD##bpp clientPixelData[16*16*(bpp/8)]; \ + uint##bpp##_t clientPixelData[16*16*(bpp/8)]; \ \ for (y = ry; y < ry+rh; y += 16) { \ for (x = rx; x < rx+rw; x += 16) { \ @@ -194,16 +193,16 @@ sendHextiles##bpp(cl, rx, ry, rw, rh) \ \ static Bool \ -subrectEncode##bpp(rfbClientPtr cl, CARD##bpp *data, int w, int h, \ - CARD##bpp bg, CARD##bpp fg, Bool mono) \ +subrectEncode##bpp(rfbClientPtr cl, uint##bpp##_t *data, int w, int h, \ + uint##bpp##_t bg, uint##bpp##_t fg, Bool mono) \ { \ - CARD##bpp cl2; \ + uint##bpp##_t cl2; \ int x,y; \ int i,j; \ int hx=0,hy,vx=0,vy; \ int hyflag; \ - CARD##bpp *seg; \ - CARD##bpp *line; \ + uint##bpp##_t *seg; \ + uint##bpp##_t *line; \ int hw,hh,vw,vh; \ int thex,they,thew,theh; \ int numsubs = 0; \ @@ -297,14 +296,14 @@ subrectEncode##bpp(rfbClientPtr cl, CARD##bpp *data, int w, int h, \ static void \ testColours##bpp(data,size,mono,solid,bg,fg) \ - CARD##bpp *data; \ + uint##bpp##_t *data; \ int size; \ Bool *mono; \ Bool *solid; \ - CARD##bpp *bg; \ - CARD##bpp *fg; \ + uint##bpp##_t *bg; \ + uint##bpp##_t *fg; \ { \ - CARD##bpp colour1 = 0, colour2 = 0; \ + uint##bpp##_t colour1 = 0, colour2 = 0; \ int n1 = 0, n2 = 0; \ *mono = TRUE; \ *solid = TRUE; \ |