From 62103ea029c52bc3e3914bddcaab8011901585fe Mon Sep 17 00:00:00 2001 From: losehu Date: Wed, 12 Feb 2025 12:59:21 +0800 Subject: [PATCH] fix draw --- tle/tle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tle/tle.c b/tle/tle.c index 0ad4d58..eadb5e5 100644 --- a/tle/tle.c +++ b/tle/tle.c @@ -889,8 +889,8 @@ void PIC_DISPLAY() { for (int i = 0; i < 39; i++) { //填充卫星 - uint8_t x = fill_point[i][0] - 4 + center_x; - uint8_t y = center_y + fill_point[i][1] - 4; + int x = fill_point[i][0] - 4 + center_x; + int y = center_y + fill_point[i][1] - 4; if (x >= 0 && y >= 0 && x < 128 && y < 64) { if (y < 8) UI_DrawPixelBuffer(&gStatusLine, x, y, look.altitude >= 0); else UI_DrawPixelBuffer(gFrameBuffer, x, y - 8, look.altitude >= 0);