From c60231f7d2b5cdfe14379034ca8d557a5bc77bc5 Mon Sep 17 00:00:00 2001 From: Eugene Medvedev Date: Sun, 20 Apr 2014 17:50:09 +0400 Subject: [PATCH] That was silly. Fixes #113 --- RasterPropMonitor/Core/RasterPropMonitor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RasterPropMonitor/Core/RasterPropMonitor.cs b/RasterPropMonitor/Core/RasterPropMonitor.cs index 17dd3997..6d160f24 100644 --- a/RasterPropMonitor/Core/RasterPropMonitor.cs +++ b/RasterPropMonitor/Core/RasterPropMonitor.cs @@ -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; @@ -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, @@ -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);