mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 19:37:00 +08:00
remove unnecessary compilation conditions
This commit is contained in:
@@ -1896,9 +1896,7 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
|
||||
}
|
||||
|
||||
|
||||
#ifndef _MGRM_THREADS
|
||||
if (CHECK_DRAWING (pdc)) goto end;
|
||||
#endif
|
||||
if (WITHOUT_DRAWING (pdc)) goto end;
|
||||
|
||||
ENTER_DRAWING (pdc);
|
||||
|
||||
|
||||
@@ -2662,9 +2662,7 @@ int _gdi_draw_null_glyph (PDC pdc, int advance, BOOL direction,
|
||||
return advance;
|
||||
}
|
||||
|
||||
#ifndef _MGRM_THREADS
|
||||
if (CHECK_DRAWING (pdc)) goto end;
|
||||
#endif
|
||||
if (WITHOUT_DRAWING (pdc)) goto end;
|
||||
|
||||
pdc->cur_pixel = pdc->bkcolor;
|
||||
pdc->cur_ban = NULL;
|
||||
@@ -2884,9 +2882,7 @@ int _gdi_draw_one_glyph (PDC pdc, Glyph32 glyph_value, BOOL direction,
|
||||
goto end;
|
||||
}
|
||||
|
||||
#ifndef _MGRM_THREADS
|
||||
if (CHECK_DRAWING (pdc)) goto end;
|
||||
#endif
|
||||
if (WITHOUT_DRAWING (pdc)) goto end;
|
||||
|
||||
ENTER_DRAWING (pdc);
|
||||
|
||||
|
||||
@@ -92,17 +92,13 @@ static void _my_set_pixel (PDC pdc, int x, int y, gal_pixel pixel)
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef _MGRM_THREADS
|
||||
if (CHECK_DRAWING (pdc)) goto no_draw;
|
||||
#endif
|
||||
if (WITHOUT_DRAWING (pdc)) goto no_draw;
|
||||
|
||||
coor_LP2SP (pdc, &x, &y);
|
||||
pdc->cur_pixel = pixel;
|
||||
_set_pixel_helper (pdc, x, y);
|
||||
|
||||
#ifndef _MGRM_THREADS
|
||||
no_draw:
|
||||
#endif
|
||||
UNLOCK_GCRINFO (pdc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user