IEC graph: vertical black line at update position
This commit is contained in:
parent
48eaa18163
commit
457293c091
1 changed files with 7 additions and 4 deletions
11
src/main.cpp
11
src/main.cpp
|
@ -441,9 +441,9 @@ void UpdateScreen()
|
|||
u32 textColour = COLOUR_BLACK;
|
||||
u32 bgColour = COLOUR_WHITE;
|
||||
|
||||
RGBA atnColour = COLOUR_YELLOW;
|
||||
RGBA dataColour = COLOUR_GREEN;
|
||||
RGBA clockColour = COLOUR_CYAN;
|
||||
RGBA atnColour = COLOUR_YELLOW;
|
||||
RGBA BkColour = FileBrowser::Colour(VIC2_COLOUR_INDEX_BLUE);
|
||||
|
||||
int height = screen.ScaleY(60);
|
||||
|
@ -487,6 +487,9 @@ void UpdateScreen()
|
|||
//refreshUartStatusDisplay = true;
|
||||
}
|
||||
|
||||
if (options.GraphIEC())
|
||||
screen.DrawLineV(graphX, top3, bottom, BkColour);
|
||||
|
||||
value = IEC_Bus::GetPI_Atn();
|
||||
if (options.GraphIEC())
|
||||
{
|
||||
|
@ -497,7 +500,6 @@ void UpdateScreen()
|
|||
}
|
||||
else
|
||||
{
|
||||
screen.DrawLineV(graphX, top3, bottom, BkColour);
|
||||
if (value) screen.PlotPixel(graphX, top3, atnColour);
|
||||
else screen.PlotPixel(graphX, bottom, atnColour);
|
||||
}
|
||||
|
@ -520,7 +522,6 @@ void UpdateScreen()
|
|||
}
|
||||
else
|
||||
{
|
||||
screen.DrawLineV(graphX, top2, bottom, BkColour);
|
||||
if (value) screen.PlotPixel(graphX, top2, dataColour);
|
||||
else screen.PlotPixel(graphX, bottom, dataColour);
|
||||
}
|
||||
|
@ -543,7 +544,6 @@ void UpdateScreen()
|
|||
}
|
||||
else
|
||||
{
|
||||
screen.DrawLineV(graphX, top, bottom, BkColour);
|
||||
if (value) screen.PlotPixel(graphX, top, clockColour);
|
||||
else screen.PlotPixel(graphX, bottom, clockColour);
|
||||
}
|
||||
|
@ -557,6 +557,9 @@ void UpdateScreen()
|
|||
}
|
||||
|
||||
if (graphX++ > screenWidthM1) graphX = 0;
|
||||
// black vertical line ahead of graph
|
||||
if (options.GraphIEC())
|
||||
screen.DrawLineV(graphX, top3, bottom, COLOUR_BLACK);
|
||||
|
||||
u32 track = pi1541.drive.Track();
|
||||
if (track != oldTrack)
|
||||
|
|
Loading…
Reference in a new issue