Skip to content

Commit a95b290

Browse files
committed
yt cursor is now 2px wide
1 parent a7f30b3 commit a95b290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/eez/gui/widgets/yt_graph.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,10 @@ DrawFunctionType YT_GRAPH_draw = [](const WidgetCursor &widgetCursor) {
544544
// draw cursor
545545
display::setColor(style->color);
546546
display::drawVLine(x + currentState->historyValuePosition % graphWidth, widgetCursor.y, (int)widget->h - 1);
547+
display::drawVLine(x + (currentState->historyValuePosition + 1) % graphWidth, widgetCursor.y, (int)widget->h - 1);
547548

548549
// draw blank lines
549-
int x1 = x + (currentState->historyValuePosition + 1) % graphWidth;
550+
int x1 = x + (currentState->historyValuePosition + 2) % graphWidth;
550551
int x2 = x + (currentState->historyValuePosition + CONF_GUI_YT_GRAPH_BLANK_PIXELS_AFTER_CURSOR) % graphWidth;
551552

552553
display::setColor(style->background_color);

0 commit comments

Comments
 (0)