Browse Source

Typedef gImage compatibility only when GDISP_NEED_IMAGE is GFXON

remotes/origin_old/develop
Joel Bodenmann 3 years ago
parent
commit
ac4b7fc8b4
  1. 4
      src/gdisp/gdisp.h

4
src/gdisp/gdisp.h

@ -1235,7 +1235,6 @@ void gdispGDrawBox(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gColor
typedef gPixel pixel_t;
typedef gCoord coord_t;
typedef gPoint point, point_t;
typedef gImage gdispImage;
typedef gFont font_t;
typedef gPowermode powermode_t;
#define powerOff gPowerOff
@ -1271,6 +1270,9 @@ void gdispGDrawBox(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gColor
#define fontMaxWidth gFontMaxWidth
#define fontBaselineX gFontBaselineX
#define fontBaselineY gFontBaselineY
#if GDISP_NEED_IMAGE || defined(__DOXYGEN__)
typedef gImage gdispImage;
#endif
#endif
#endif /* GFX_USE_GDISP */

Loading…
Cancel
Save