summaryrefslogtreecommitdiff
path: root/ldmicro/draw_outputdev.cpp
diff options
context:
space:
mode:
authorakshay-c2019-04-09 10:46:06 +0530
committerakshay-c2019-04-09 10:46:06 +0530
commitdf1231112f08a66addd444c08839dee87905974d (patch)
treeba9409f32310c1a2163943e58057e59f15e89474 /ldmicro/draw_outputdev.cpp
parent04220d0ad3d86a996f6163ed16a86d1a71574132 (diff)
downloadLDmicroQt-df1231112f08a66addd444c08839dee87905974d.tar.gz
LDmicroQt-df1231112f08a66addd444c08839dee87905974d.tar.bz2
LDmicroQt-df1231112f08a66addd444c08839dee87905974d.zip
Drawing Elements and HelpDialog
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();