mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-14 23:47:02 +03:00
fix vertical VU offset - release
This commit is contained in:
@@ -573,8 +573,9 @@ void draw_VU(struct GDS_Device * display, const uint8_t *data, int level, int x,
|
|||||||
|
|
||||||
// adjust to current display window
|
// adjust to current display window
|
||||||
if (width > VU_WIDTH) {
|
if (width > VU_WIDTH) {
|
||||||
|
if (rotate) y += (width - VU_WIDTH) / 2;
|
||||||
|
else x += (width - VU_WIDTH) / 2;
|
||||||
width = VU_WIDTH;
|
width = VU_WIDTH;
|
||||||
x += (width - VU_WIDTH) / 2;
|
|
||||||
} else {
|
} else {
|
||||||
data += (VU_WIDTH - width) / 2 * VU_HEIGHT;
|
data += (VU_WIDTH - width) / 2 * VU_HEIGHT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user