diff options
author | Rr42 | 2018-05-25 18:53:00 +0530 |
---|---|---|
committer | Rr42 | 2018-05-25 18:53:00 +0530 |
commit | b689a165db83226ea6735dea22a47bac2f4f41ab (patch) | |
tree | 7d3a87fc5b3b1ec5934c731438d5eaa3c5192263 /ldmicro/draw_outputdev.cpp | |
parent | fc0a5f41e04859ea62a97f6c14c6854aa0ae8486 (diff) | |
download | LDMicroGtk-b689a165db83226ea6735dea22a47bac2f4f41ab.tar.gz LDMicroGtk-b689a165db83226ea6735dea22a47bac2f4f41ab.tar.bz2 LDMicroGtk-b689a165db83226ea6735dea22a47bac2f4f41ab.zip |
Dropped support for windows cross compilation
Diffstat (limited to 'ldmicro/draw_outputdev.cpp')
-rw-r--r-- | ldmicro/draw_outputdev.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ldmicro/draw_outputdev.cpp b/ldmicro/draw_outputdev.cpp index 2173bb5..7df670c 100644 --- a/ldmicro/draw_outputdev.cpp +++ b/ldmicro/draw_outputdev.cpp @@ -21,6 +21,8 @@ // stuff to write to a file, or all the routines concerned with drawing to // the screen. // Jonathan Westhues, Dec 2004 +// +// Ported to linus by: R Ramana, 2018 //----------------------------------------------------------------------------- #include <windows.h> #include <stdio.h> @@ -80,7 +82,7 @@ SyntaxHighlightingColours HighlightColours; //----------------------------------------------------------------------------- void CALLBACK BlinkCursor(HWND hwnd, UINT msg, UINT_PTR id, DWORD time) { - if(GetFocus() != MainWindow && !CursorDrawn) return; + if(!isFocus(MainWindow) && !CursorDrawn) return; if(Cursor.left == 0) return; PlcCursor c; |