mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-27 12:50:49 +03:00
only slow clear for now
This commit is contained in:
@@ -60,6 +60,14 @@ void GDS_Clear( struct GDS_Device* Device, int Color ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GDS_ClearWindow( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color ) {
|
void GDS_ClearWindow( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color ) {
|
||||||
|
|
||||||
|
for (int y = y1; y <= y2; y++) {
|
||||||
|
for (int x = x1; x <= x2; x++) {
|
||||||
|
GDS_DrawPixelFast( Device, x, y, Color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
|
||||||
// driver can provide own optimized clear window
|
// driver can provide own optimized clear window
|
||||||
if (Device->ClearWindow) {
|
if (Device->ClearWindow) {
|
||||||
Device->ClearWindow( Device, x1, y1, x2, y2, Color );
|
Device->ClearWindow( Device, x1, y1, x2, y2, Color );
|
||||||
|
|||||||
Reference in New Issue
Block a user