From 82497a40325be639f1a0b8f191727375020183f2 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 21 Jan 2020 12:20:04 +0800 Subject: [PATCH] fix conditional compilation errors --- src/include/dc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/dc.h b/src/include/dc.h index d08c0136..7329be63 100644 --- a/src/include/dc.h +++ b/src/include/dc.h @@ -563,6 +563,8 @@ do { \ # define BLOCK_DRAW_SEM(pdc) # define UNBLOCK_DRAW_SEM(pdc) +# define IS_SCREEN_SURFACE(pdc) \ + (pdc->surface == __gal_screen) # define WITHOUT_DRAWING(pdc) \ (__mg_switch_away && pdc->surface == __gal_screen) #endif /* defined _MGRM_THREADS */