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.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/ldmicro/draw_outputdev.cpp b/ldmicro/draw_outputdev.cpp
index 1775104..d7ca7bd 100644
--- a/ldmicro/draw_outputdev.cpp
+++ b/ldmicro/draw_outputdev.cpp
@@ -121,6 +121,7 @@ BOOL BlinkCursor(BOOL kill = FALSE)
PREV_y = c.top();
PREV_w = c.width();
PREV_h = c.height();
+ // printf("Cursor: x:%d, y:%d\n",c.left(),c.top());
// MainWindowResized();
// PaintWindow(Hcr);
@@ -157,8 +158,8 @@ static void DrawCharsToScreen(HCRDC Hcr, int cx, int cy, const char *str)
BOOL inComment = FALSE;
int inBrace = 0;
for(; *str; str++, cx++) {
- int x = cx*FONT_WIDTH + X_PADDING;
- int y = cy*FONT_HEIGHT + Y_PADDING;
+ int x = cx * FONT_WIDTH + X_PADDING;
+ int y = cy * FONT_HEIGHT + Y_PADDING;
BOOL hiOk = !(InSimulationMode || ThisHighlighted);
@@ -358,14 +359,14 @@ void PaintWidget::paintEvent(QPaintEvent *event)
FillRect(Hcr, &r, InSimulationMode ? BusRightBus : BusBrush);
// InvalidateRect(DrawWindow, NULL, FALSE);
- // CursorDrawn = FALSE;
+ CursorDrawn = FALSE;
// BitBlt(paintDc, 0, 0, bw, bh, BackDc, ScrollXOffset, 0, SRCCOPY);
/*if(InSimulationMode) {
KillTimer(DrawWindow, TIMER_BLINK_CURSOR);
} else {
- SetTimer(DrawWindow, TIMER_BLINK_CURSOR, 200, BlinkCursor);
+ CursorTimer = SetTimer(DrawWindow, TIMER_BLINK_CURSOR, 500, CursorTimer);
}*/
ok();