瀏覽代碼

Fix a compile warning on Windows

rdb 11 年之前
父節點
當前提交
a81e192ba5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      panda/src/tinydisplay/zline.h

+ 2 - 1
panda/src/tinydisplay/zline.h

@@ -35,6 +35,7 @@
     b = p2->b << 8;
     b = p2->b << 8;
 #endif
 #endif
 
 
+#undef RGB /* from wingdi.h */
 #ifdef INTERP_RGB
 #ifdef INTERP_RGB
 #define RGB(x) x
 #define RGB(x) x
 #define RGBPIXEL *pp = RGB_TO_PIXEL(r >> 8,g >> 8,b >> 8)
 #define RGBPIXEL *pp = RGB_TO_PIXEL(r >> 8,g >> 8,b >> 8)
@@ -105,4 +106,4 @@
 #undef PUTPIXEL
 #undef PUTPIXEL
 #undef ZZ
 #undef ZZ
 #undef RGB
 #undef RGB
-#undef RGBPIXEL 
+#undef RGBPIXEL