diff options
author | akshay-c | 2019-04-09 10:46:06 +0530 |
---|---|---|
committer | akshay-c | 2019-04-09 10:46:06 +0530 |
commit | df1231112f08a66addd444c08839dee87905974d (patch) | |
tree | ba9409f32310c1a2163943e58057e59f15e89474 /ldmicro/draw_outputdev.cpp | |
parent | 04220d0ad3d86a996f6163ed16a86d1a71574132 (diff) | |
download | LDmicroQt-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.cpp | 9 |
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(); |