mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-04-17 03:59:28 +01:00
23 lines
742 B
C
23 lines
742 B
C
/**
|
|
* Copyright (c) 2017-2018 Tara Keeling
|
|
* 2020 Philippe G.
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#include "gds_private.h"
|
|
#include "gds.h"
|
|
#include "gds_draw.h"
|
|
|
|
void IRAM_ATTR GDS_DrawPixelExt( struct GDS_Device* Device, int X, int Y, int Color ){
|
|
if ( IsPixelVisible( Device, X, Y ) == true ) {
|
|
GDS_DrawPixelFast( Device, X, Y, Color );
|
|
}
|
|
}
|
|
void IRAM_ATTR GDS_DrawPixelFastExt( struct GDS_Device* Device, int X, int Y, int Color ){
|
|
if (Device->DrawPixelFast) Device->DrawPixelFast( Device, X, Y, Color );
|
|
else if (Device->Depth == 4) GDS_DrawPixel4Fast( Device, X, Y, Color);
|
|
else if (Device->Depth == 1) GDS_DrawPixel1Fast( Device, X, Y, Color);
|
|
}
|