Update OneEighthScanMatrixPanel.h

This commit is contained in:
mrfaptastic 2021-10-10 19:52:32 +01:00
parent 5a4e17945b
commit ad2cb3c976

View file

@ -163,12 +163,17 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) {
*/
// Reverse co-ordinates if panel chain from ESP starts from the TOP RIGHT
// TODO: Remove use of underyling _cfg configuration values!
if (_chain_top_down)
{
/*
// TODO: Remove use of underyling _cfg configuration values!
const HUB75_I2S_CFG _cfg = this->display->getCfg();
coords.x = (_cfg.mx_width * _cfg.chain_length - 1) - coords.x;
coords.y = (_cfg.mx_height-1) - coords.y;
*/
coords.x = (panelResX * rows * cols - 1) - coords.x;
coords.y = (panelResY-1) - coords.y;
}