Better right align text in grid

pull/4/head
DiSlord 6 years ago
parent 27f85e8405
commit 3abc1ba504

@ -304,7 +304,7 @@ extern uint16_t _grid_y;
#define AREA_WIDTH_NORMAL (CELLOFFSETX + WIDTH + 1)
#define AREA_HEIGHT_NORMAL ( HEIGHT + 1)
#define GRID_X_TEXT (AREA_WIDTH_NORMAL - 25)
#define GRID_X_TEXT (AREA_WIDTH_NORMAL - 6*5)
// Smith/polar chart
#define P_CENTER_X (CELLOFFSETX + WIDTH/2)

@ -1955,7 +1955,7 @@ static void cell_grid_line_info(int x0, int y0)
for (int i = 0; i < NGRIDY; i++){
if (ypos >= CELLHEIGHT) break;
if (ypos >= -FONT_GET_HEIGHT){
plot_printf(buf, sizeof buf, "% .2F", ref);
plot_printf(buf, sizeof buf, "% 6.2F", ref);
cell_drawstring(buf, xpos, ypos);
}
ypos+=GRIDY;

Loading…
Cancel
Save

Powered by TurnKey Linux.