summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorIzumi Tsutsui <tsutsui@ceres.dti.ne.jp>2010-08-08 18:54:05 +0900
committerBlue Swirl <blauwirbel@gmail.com>2010-09-04 10:11:32 +0000
commitf570ed81aa46cb4c6a151342e4725f9d275fafd9 (patch)
tree1f42ad3ddaea6227ab3af12b64db3b675ec5f0e1 /ui
parent79b6812493fe97b0d6a016a3bbbc5e2730ee4b56 (diff)
downloadqemu-f570ed81aa46cb4c6a151342e4725f9d275fafd9.tar.gz
qemu-f570ed81aa46cb4c6a151342e4725f9d275fafd9.tar.bz2
qemu-f570ed81aa46cb4c6a151342e4725f9d275fafd9.zip
vnc: use bswapNN() rather than bswap_NN()
bswap_NN() variants are not always available in CONFIG_MACHINE_BSWAP_H case and bswapNN() are public APIs in "bswap.h". Signed-off-by: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc-enc-tight.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index e3db8e98b9..971bced934 100644
--- a/ui/vnc-enc-tight.c
+++ b/ui/vnc-enc-tight.c
@@ -209,7 +209,7 @@ tight_detect_smooth_image24(VncState *vs, int w, int h)
d < w - x - VNC_TIGHT_DETECT_SUBROW_WIDTH; d++) { \
pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d]; \
if (endian) { \
- pix = bswap_##bpp(pix); \
+ pix = bswap##bpp(pix); \
} \
for (c = 0; c < 3; c++) { \
left[c] = (int)(pix >> shift[c] & max[c]); \
@@ -218,7 +218,7 @@ tight_detect_smooth_image24(VncState *vs, int w, int h)
dx++) { \
pix = ((uint##bpp##_t *)buf)[(y+d)*w+x+d+dx]; \
if (endian) { \
- pix = bswap_##bpp(pix); \
+ pix = bswap##bpp(pix); \
} \
sum = 0; \
for (c = 0; c < 3; c++) { \
@@ -608,7 +608,7 @@ tight_filter_gradient24(VncState *vs, uint8_t *buf, int w, int h)
for (x = 0; x < w; x++) { \
pix = *buf; \
if (endian) { \
- pix = bswap_##bpp(pix); \
+ pix = bswap##bpp(pix); \
} \
diff = 0; \
for (c = 0; c < 3; c++) { \
@@ -628,7 +628,7 @@ tight_filter_gradient24(VncState *vs, uint8_t *buf, int w, int h)
<< shift[c]; \
} \
if (endian) { \
- diff = bswap_##bpp(diff); \
+ diff = bswap##bpp(diff); \
} \
*buf++ = diff; \
} \