aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/image_native.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-10-24 18:34:26 +1000
committerinmarket <andrewh@inmarket.com.au>2013-10-24 18:34:26 +1000
commita28dce97d877160b10a3683fbf8ea578c8405417 (patch)
tree2025401485adc6c41014f0adfc98bb6a6d2cd552 /src/gdisp/image_native.c
parente642edb4e182cad5aa2b109b3baf23cacc903084 (diff)
downloaduGFX-a28dce97d877160b10a3683fbf8ea578c8405417.tar.gz
uGFX-a28dce97d877160b10a3683fbf8ea578c8405417.tar.bz2
uGFX-a28dce97d877160b10a3683fbf8ea578c8405417.zip
Add multiple display support to image decoding.
Diffstat (limited to 'src/gdisp/image_native.c')
-rw-r--r--src/gdisp/image_native.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gdisp/image_native.c b/src/gdisp/image_native.c
index 24aed81f..72ae8b61 100644
--- a/src/gdisp/image_native.c
+++ b/src/gdisp/image_native.c
@@ -91,7 +91,7 @@ gdispImageError gdispImageCache_NATIVE(gdispImage *img) {
return GDISP_IMAGE_ERR_OK;
}
-gdispImageError gdispImageDraw_NATIVE(gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) {
+gdispImageError gdispImageGDraw_NATIVE(GDisplay *g, gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) {
coord_t mx, mcx;
size_t pos, len;
@@ -102,7 +102,7 @@ gdispImageError gdispImageDraw_NATIVE(gdispImage *img, coord_t x, coord_t y, coo
/* Draw from the image cache - if it exists */
if (img->priv->frame0cache) {
- gdispBlitAreaEx(x, y, cx, cy, sx, sy, img->width, img->priv->frame0cache);
+ gdispGBlitArea(g, x, y, cx, cy, sx, sy, img->width, img->priv->frame0cache);
return GDISP_IMAGE_ERR_OK;
}
@@ -125,7 +125,7 @@ gdispImageError gdispImageDraw_NATIVE(gdispImage *img, coord_t x, coord_t y, coo
return GDISP_IMAGE_ERR_BADDATA;
/* Blit the chunk of data */
- gdispBlitAreaEx(mx, y, len, 1, 0, 0, len, img->priv->buf);
+ gdispGBlitArea(g, mx, y, len, 1, 0, 0, len, img->priv->buf);
}
/* Get the position for the start of the next line */