diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-11-05 13:43:28 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-11-05 13:43:28 +1000 |
commit | e35b76388cdc32e275962a19932c64a2ce0ee52d (patch) | |
tree | d32fb5d3f3cce52cb42a459dced3203179fb33e7 | |
parent | ece5bcd6ab566dc3bef092e6a0b5260ba771bc85 (diff) | |
download | uGFX-e35b76388cdc32e275962a19932c64a2ce0ee52d.tar.gz uGFX-e35b76388cdc32e275962a19932c64a2ce0ee52d.tar.bz2 uGFX-e35b76388cdc32e275962a19932c64a2ce0ee52d.zip |
Fix to streaming read pixel for Win32 driver in emulation mode.
-rw-r--r-- | drivers/multiple/Win32/gdisp_lld_Win32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/multiple/Win32/gdisp_lld_Win32.c b/drivers/multiple/Win32/gdisp_lld_Win32.c index 65baf903..6cbf9cd4 100644 --- a/drivers/multiple/Win32/gdisp_lld_Win32.c +++ b/drivers/multiple/Win32/gdisp_lld_Win32.c @@ -641,20 +641,20 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: - color = GetPixel(priv->dcBuffer, g->p.x, g->p.y); + color = GetPixel(priv->dcBuffer, priv->x, priv->y); break; case GDISP_ROTATE_90: - color = GetPixel(priv->dcBuffer, g->p.y, g->g.Width - 1 - g->p.x); + color = GetPixel(priv->dcBuffer, priv->y, g->g.Width - 1 - priv->x); break; case GDISP_ROTATE_180: - color = GetPixel(priv->dcBuffer, g->g.Width - 1 - g->p.x, g->g.Height - 1 - g->p.y); + color = GetPixel(priv->dcBuffer, g->g.Width - 1 - priv->x, g->g.Height - 1 - priv->y); break; case GDISP_ROTATE_270: - color = GetPixel(priv->dcBuffer, g->g.Height - 1 - g->p.y, g->p.x); + color = GetPixel(priv->dcBuffer, g->g.Height - 1 - priv->y, priv->x); break; } #else - color = GetPixel(priv->dcBuffer, g->p.x, g->p.y); + color = GetPixel(priv->dcBuffer, priv->x, priv->y); #endif ReleaseMutex(drawMutex); |