Browse Source

Added type gColorformat to replace V2.x colorformat

remotes/origin_old/release/v2.9
inmarket 3 years ago
parent
commit
e23ae94e91
  1. 1
      changelog.txt
  2. 1
      src/gdisp/gdisp.h
  3. 2
      src/gdisp/gdisp_colors.h

1
changelog.txt

@ -20,6 +20,7 @@ CHANGE: Added type gPoint to replace V2.x point and point_t
CHANGE: Added type gCoord to replace V2.x coord_t
CHANGE: Added type gPixel to replace V2.x pixel_t
CHANGE: Added type gColor to replace V2.x color_t
CHANGE: Added type gColorformat to replace V2.x colorformat
CHANGE: Added type gFont to replace V2.x font_t
CHANGE: Added type gPowermode to replace V2.x powermode_t, and values gPowerXXX replace powerXXX
CHANGE: Added type gJustify to replace V2.x justify_t, and values gJustifyXXX replace justifyXXX

1
src/gdisp/gdisp.h

@ -1230,6 +1230,7 @@ void gdispGDrawBox(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gColor
/* V2 compatibility */
#if GFX_COMPAT_V2
typedef gColorformat colorformat;
typedef gColor color_t;
typedef gPixel pixel_t;
typedef gCoord coord_t;

2
src/gdisp/gdisp_colors.h

@ -23,7 +23,7 @@
#if GFX_USE_GDISP || defined(__DOXYGEN__)
typedef uint16_t colorformat;
typedef uint16_t gColorformat;
/**
* @name Color system masks

Loading…
Cancel
Save