summaryrefslogtreecommitdiff
path: root/ldmicro/draw_outputdev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ldmicro/draw_outputdev.cpp')
-rw-r--r--ldmicro/draw_outputdev.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldmicro/draw_outputdev.cpp b/ldmicro/draw_outputdev.cpp
index d38f3a8..28b8f78 100644
--- a/ldmicro/draw_outputdev.cpp
+++ b/ldmicro/draw_outputdev.cpp
@@ -110,8 +110,10 @@ BOOL BlinkCursor(BOOL kill = FALSE)
if (PREV_x != c.left() || PREV_y != c.top() ||
PREV_w != c.width() || PREV_h != c.height())
{
+ scrollbar->setFrameRect(c);
CursorObject->setGeometry(c);
CursorObject->setVisible(TRUE);
+ scrollbar->ensureWidgetVisible(CursorObject);
PREV_x = c.left();
PREV_y = c.top();
PREV_w = c.width();
@@ -319,7 +321,6 @@ void PaintWidget::paintEvent(QPaintEvent *event)
cy += thisHeight;
cy += POS_HEIGHT;
}
- // printf("Endrung:%d\n", cy);
QSize DWSize = this->size();
int newHeight = ((cy + (POS_HEIGHT/2)) * FONT_HEIGHT + Y_PADDING + 50);
if(DWSize.height() + POS_HEIGHT < newHeight)
@@ -394,7 +395,7 @@ static void SetSyntaxHighlightingColours(void)
RGB(0, 0, 0), // simBg
RGB(130, 130, 130), // simRungNum
- RGB(100, 130, 130), // simOff
+ RGB(170, 200, 200), // simOff
RGB(255, 150, 150), // simOn
RGB(255, 150, 150), // simBusLeft