From 0b9db701a1d52c8a6d63ca692619b0dde47805d1 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 21 Oct 2013 13:34:55 +1000 Subject: Fix missing case in gdispStreamStop(). Add support for controllers that need flushing. Add both automatic and manual flushing (via the gdispFlush() method) --- drivers/multiple/Win32/gdisp_lld.c | 9 +++++++++ drivers/multiple/Win32/gdisp_lld_config.h | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'drivers') diff --git a/drivers/multiple/Win32/gdisp_lld.c b/drivers/multiple/Win32/gdisp_lld.c index 6c2e7f33..011f8e74 100644 --- a/drivers/multiple/Win32/gdisp_lld.c +++ b/drivers/multiple/Win32/gdisp_lld.c @@ -457,6 +457,15 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { return TRUE; } +#if GDISP_HARDWARE_FLUSH + LLDSPEC void gdisp_lld_flush(GDisplay *g) { + winPriv * priv; + + priv = g->priv; + UpdateWindow(priv->hwnd); + } +#endif + #if GDISP_HARDWARE_DRAWPIXEL LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g) { winPriv * priv; diff --git a/drivers/multiple/Win32/gdisp_lld_config.h b/drivers/multiple/Win32/gdisp_lld_config.h index 5720eaed..f6544eb4 100644 --- a/drivers/multiple/Win32/gdisp_lld_config.h +++ b/drivers/multiple/Win32/gdisp_lld_config.h @@ -22,6 +22,10 @@ /* Driver hardware support. */ /*===========================================================================*/ +// Calling gdispGFlush() is optional for this driver but can be used by the +// application to force a display update. eg after streaming. + +#define GDISP_HARDWARE_FLUSH TRUE #define GDISP_HARDWARE_DRAWPIXEL TRUE #define GDISP_HARDWARE_FILLS TRUE #define GDISP_HARDWARE_PIXELREAD TRUE -- cgit v1.2.3