Skip to content

Commit

Permalink
fix draw
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Feb 12, 2025
1 parent 87ddf1b commit 62103ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tle/tle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62103ea

Please sign in to comment.