Revert "removed unused RGB565CONVERT. Please use RGB2COLOR instead"
This reverts commit 8231e9738c
.
This commit is contained in:
parent
933ea0a866
commit
e8ee122321
@ -43,6 +43,7 @@ void mandelbrot(float x1, float y1, float x2, float y2) {
|
||||
x = xx - yy + cx;
|
||||
}
|
||||
color = ((iter << 8) | (iter&0xFF));
|
||||
//color = RGB565CONVERT(iter*4, iter*13, iter*10);
|
||||
gdispDrawPixel(i, j, color);
|
||||
}
|
||||
}
|
||||
|
@ -293,6 +293,7 @@ void gdispDrawBox(coord_t x, coord_t y, coord_t cx, coord_t cy, color_t color);
|
||||
|
||||
/* Now obsolete functions */
|
||||
#define gdispBlitArea(x, y, cx, cy, buffer) gdispBlitAreaEx(x, y, cx, cy, 0, 0, cx, buffer)
|
||||
#define RGB565CONVERT(r,g,b) RGB2COLOR(r,g,b)
|
||||
|
||||
/* Macro definitions for common gets and sets */
|
||||
#define gdispSetPowerMode(powerMode) gdispControl(GDISP_CONTROL_POWER, (void *)(unsigned)(powerMode))
|
||||
|
Loading…
Reference in New Issue
Block a user