Skip to content

Commit

Permalink
That was silly.
Browse files Browse the repository at this point in the history
Fixes #113
  • Loading branch information
Mihara committed Apr 20, 2014
1 parent 789289e commit c60231f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RasterPropMonitor/Core/RasterPropMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ private bool UpdateCheck()
return false;
}

private void RenderText(string[] textBuffer)
private void RenderText(string[] textBuffer, bool drawingOverlay = false)
{
float yCursor = activePage.screenYMin * fontLetterHeight;
float yCursor = drawingOverlay ? 0 : (activePage.screenYMin * fontLetterHeight);
for (int lineIndex = 0; lineIndex < textBuffer.Length; yCursor += fontLetterHeight, lineIndex++) {
if (!string.IsNullOrEmpty(textBuffer[lineIndex])) {
Color fontColor = activePage.defaultColor;
Expand All @@ -356,7 +356,7 @@ private void RenderText(string[] textBuffer)
fontTextureIndex = 0;
if (activePage.pageFont < fontTexture.Count)
fontTextureIndex = activePage.pageFont;
float xCursor = activePage.screenXMin * fontLetterWidth;
float xCursor = drawingOverlay ? 0 : (activePage.screenXMin * fontLetterWidth);
for (int charIndex = 0; charIndex < textBuffer[lineIndex].Length; charIndex++) {
bool escapedBracket = false;
// We will continue parsing bracket pairs until we're out of bracket pairs,
Expand Down Expand Up @@ -483,7 +483,7 @@ private void RenderScreen()

// If we have a text overlay, that's where we print it.
if (activePage.textOverlayBuffer.Length > 0) {
RenderText(activePage.textOverlayBuffer);
RenderText(activePage.textOverlayBuffer, true);
}

activePage.RenderOverlay(screenTexture);
Expand Down

0 comments on commit c60231f

Please sign in to comment.