From a81e192ba5f7d7ebc1ea06c1b9431267b0a017f7 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 7 Mar 2014 19:43:48 +0000 Subject: [PATCH] Fix a compile warning on Windows --- panda/src/tinydisplay/zline.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/tinydisplay/zline.h b/panda/src/tinydisplay/zline.h index 20914a67f9..8e162d54a4 100644 --- a/panda/src/tinydisplay/zline.h +++ b/panda/src/tinydisplay/zline.h @@ -35,6 +35,7 @@ b = p2->b << 8; #endif +#undef RGB /* from wingdi.h */ #ifdef INTERP_RGB #define RGB(x) x #define RGBPIXEL *pp = RGB_TO_PIXEL(r >> 8,g >> 8,b >> 8) @@ -105,4 +106,4 @@ #undef PUTPIXEL #undef ZZ #undef RGB -#undef RGBPIXEL +#undef RGBPIXEL