lock_draw_sem -> LOCK_DRAW_SEM; unlock_draw_sem -> UNLOCK_DRAW_SEM

This commit is contained in:
Vincent Wei
2020-01-21 10:38:49 +08:00
parent fc42d28f65
commit 4f1527c898

View File

@@ -76,9 +76,9 @@ MG_Layer* mgTopmostLayer = NULL;
ON_CHANGE_LAYER OnChangeLayer = NULL;
#define CHANGE_TOPMOST_LAYER(layer) \
lock_draw_sem (); \
LOCK_DRAW_SEM (); \
SHAREDRES_TOPMOST_LAYER = (GHANDLE)layer; \
unlock_draw_sem ();
UNLOCK_DRAW_SEM ();
static int sg_nr_layers = 0;
static unsigned char sem_usage [(MAX_NR_LAYERS + 7)/8];