aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gwin/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/image.c b/src/gwin/image.c
index 64a27840..bba92238 100644
--- a/src/gwin/image.c
+++ b/src/gwin/image.c
@@ -87,7 +87,7 @@ void gwinImageSetBgColor(GHandle gh, color_t bgColor) {
}
void gwinImageDraw(GHandle gh) {
- gdispImageDraw(widget(gh)->image, widget(gh)->g.x, widget(gh)->g.y, widget(gh)->g.width, widget(gh)->g.height, 0, 0);
+ gdispImageDraw(widget(gh)->image, widget(gh)->g.x, widget(gh)->g.y, widget(gh)->image->width, widget(gh)->image->height, 0, 0);
}
#endif // GFX_USE_GWIN && GWIN_NEED_IMAGE