summaryrefslogtreecommitdiff
path: root/ldmicro/draw_outputdev.cpp
diff options
context:
space:
mode:
authorakshay-c2019-12-16 11:09:46 +0530
committerakshay-c2019-12-16 11:09:46 +0530
commit89ac0ff09bcf77bb0d6d3158746d97b916d1935c (patch)
tree3097c9f0f56917d39a1d5e4c1aa3c8522c104f3d /ldmicro/draw_outputdev.cpp
parent8794ca93788a8aa75911fe799748dc043510047d (diff)
downloadLDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.tar.gz
LDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.tar.bz2
LDmicroQt-89ac0ff09bcf77bb0d6d3158746d97b916d1935c.zip
Comment dialog Bugfix;Toolbar disable during simulation;Code cleanup;
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