Skip to content

Commit

Permalink
yt cursor is now 2px wide
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Apr 6, 2020
1 parent a7f30b3 commit a95b290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eez/gui/widgets/yt_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,10 @@ DrawFunctionType YT_GRAPH_draw = [](const WidgetCursor &widgetCursor) {
// draw cursor
display::setColor(style->color);
display::drawVLine(x + currentState->historyValuePosition % graphWidth, widgetCursor.y, (int)widget->h - 1);
display::drawVLine(x + (currentState->historyValuePosition + 1) % graphWidth, widgetCursor.y, (int)widget->h - 1);

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

display::setColor(style->background_color);
Expand Down

0 comments on commit a95b290

Please sign in to comment.