mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
Fix build error - Color display support - release
This commit is contained in:
@@ -587,13 +587,13 @@ void draw_VU(struct GDS_Device * display, const uint8_t *data, int level, int x,
|
|||||||
if (visu.rotate) {
|
if (visu.rotate) {
|
||||||
for (int r = 0; r < width; r++) {
|
for (int r = 0; r < width; r++) {
|
||||||
for (int c = VU_HEIGHT; --c >= 0;) {
|
for (int c = VU_HEIGHT; --c >= 0;) {
|
||||||
GDS_DrawPixelFast(display, c + x, r + y, *data++ >> scale);
|
GDS_DrawPixelFastExt(display, c + x, r + y, *data++ >> scale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int r = 0; r < width; r++) {
|
for (int r = 0; r < width; r++) {
|
||||||
for (int c = 0; c < VU_HEIGHT; c++) {
|
for (int c = 0; c < VU_HEIGHT; c++) {
|
||||||
GDS_DrawPixelFast(display, r + x, c + y, *data++ >> scale);
|
GDS_DrawPixelFastExt(display, r + x, c + y, *data++ >> scale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -602,13 +602,13 @@ void draw_VU(struct GDS_Device * display, const uint8_t *data, int level, int x,
|
|||||||
if (visu.rotate) {
|
if (visu.rotate) {
|
||||||
for (int r = 0; r < width; r++) {
|
for (int r = 0; r < width; r++) {
|
||||||
for (int c = VU_HEIGHT; --c >= 0;) {
|
for (int c = VU_HEIGHT; --c >= 0;) {
|
||||||
GDS_DrawPixelFast(display, c + x, r + y, grayMap[*data++]);
|
GDS_DrawPixelFastExt(display, c + x, r + y, grayMap[*data++]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int r = 0; r < width; r++) {
|
for (int r = 0; r < width; r++) {
|
||||||
for (int c = 0; c < VU_HEIGHT; c++) {
|
for (int c = 0; c < VU_HEIGHT; c++) {
|
||||||
GDS_DrawPixelFast(display, r + x, c + y, grayMap[*data++]);
|
GDS_DrawPixelFastExt(display, r + x, c + y, grayMap[*data++]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user