GDISP fix bug in non-multithread

ugfx_release_2.6
inmarket 2013-07-07 19:39:17 +10:00
parent f7e7a5dae4
commit 0c7609b51e
2 changed files with 4 additions and 1 deletions

View File

@ -572,7 +572,6 @@ extern "C" {
#include "gdisp/lld/gdisp_lld.h"
/* The same as above but use the low level driver directly if no multi-thread support is needed */
#define _gdispInit(gdisp) gdisp_lld_init()
#define gdispIsBusy() FALSE
#define gdispClear(color) gdisp_lld_clear(color)
#define gdispDrawPixel(x, y, color) gdisp_lld_draw_pixel(x, y, color)

View File

@ -135,6 +135,10 @@
gdisp_lld_init();
gfxMutexExit(&gdispMutex);
}
#else
void _gdispInit(void) {
gdisp_lld_init();
}
#endif
#if GDISP_NEED_MULTITHREAD