summaryrefslogtreecommitdiffstats
path: root/examples/rotatetemplate.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-17 14:43:55 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-17 14:43:55 +0100
commitfe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532 (patch)
tree8539521ed668d65f6dbd59c491bc9565bce6e8cb /examples/rotatetemplate.c
parent56234cd0b656de3c8827288f2adf78c9cb12d0c5 (diff)
downloadlibtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.tar.gz
libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.zip
Fix (most) MinGW32 compiler warnings.
Diffstat (limited to 'examples/rotatetemplate.c')
-rw-r--r--examples/rotatetemplate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/rotatetemplate.c b/examples/rotatetemplate.c
index 57dc052..0d7e007 100644
--- a/examples/rotatetemplate.c
+++ b/examples/rotatetemplate.c
@@ -1,5 +1,5 @@
-#define OUT_T CONCAT3E(uint,OUT,_t)
-#define FUNCTION CONCAT2E(FUNCNAME,OUT)
+#define OUT_T CONCAT3E(uint,OUTBITS,_t)
+#define FUNCTION CONCAT2E(FUNCNAME,OUTBITS)
static void FUNCTION(rfbScreenInfoPtr screen)
{
@@ -16,7 +16,7 @@ static void FUNCTION(rfbScreenInfoPtr screen)
#ifdef SWAPDIMENSIONS
screen->width = h;
- screen->paddedWidthInBytes = h * OUT / 8;
+ screen->paddedWidthInBytes = h * OUTBITS / 8;
screen->height = w;
{
@@ -31,7 +31,7 @@ static void FUNCTION(rfbScreenInfoPtr screen)
rfbMarkRectAsModified(screen, 0, 0, screen->width, screen->height);
}
-#if OUT == 32
+#if OUTBITS == 32
void FUNCNAME(rfbScreenInfoPtr screen) {
if (screen->serverFormat.bitsPerPixel == 32)
CONCAT2E(FUNCNAME,32)(screen);
@@ -48,5 +48,5 @@ void FUNCNAME(rfbScreenInfoPtr screen) {
#endif
#undef FUNCTION
-#undef OUT
+#undef OUTBITS