summaryrefslogtreecommitdiff
path: root/ldmicro/includes/ldmicro.h
diff options
context:
space:
mode:
authorRr422018-06-21 14:37:00 +0530
committerRr422018-06-21 14:37:00 +0530
commit62b404d735ba540b7b4c532705cfcc99d9d61d67 (patch)
tree52ba9c58e7eec14f25ca6ad4d22347bb44dfe3c6 /ldmicro/includes/ldmicro.h
parent70674cf532c911a0aba872422039bfa5b04ada29 (diff)
downloadLDMicroGtk-62b404d735ba540b7b4c532705cfcc99d9d61d67.tar.gz
LDMicroGtk-62b404d735ba540b7b4c532705cfcc99d9d61d67.tar.bz2
LDMicroGtk-62b404d735ba540b7b4c532705cfcc99d9d61d67.zip
Bug fixes for cursor and PrintWindow
Diffstat (limited to 'ldmicro/includes/ldmicro.h')
-rw-r--r--ldmicro/includes/ldmicro.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/ldmicro/includes/ldmicro.h b/ldmicro/includes/ldmicro.h
index 3db6fbd..d604bf7 100644
--- a/ldmicro/includes/ldmicro.h
+++ b/ldmicro/includes/ldmicro.h
@@ -589,7 +589,8 @@ void RefreshScrollbars(void);
extern HINSTANCE Instance;
extern HWID MainWindow;
extern HWID DrawWindow;
-extern HCRDC Hdc;
+// extern HGDDC Hdc;
+// extern HCRDC Hcr;
extern PlcProgram Prog;
extern char CurrentSaveFile[MAX_PATH];
extern char CurrentCompileFile[MAX_PATH];
@@ -624,16 +625,16 @@ extern HMENU ScrollWindow;
// draw.cpp
int ProgCountWidestRow(void);
int CountHeightOfElement(int which, void *elem);
-BOOL DrawElement(int which, void *elem, int *cx, int *cy, BOOL poweredBefore);
-void DrawEndRung(int cx, int cy);
+BOOL DrawElement(HCRDC Hcr, int which, void *elem, int *cx, int *cy, BOOL poweredBefore);
+void DrawEndRung(HCRDC Hcr, int cx, int cy);
extern int ColsAvailable;
extern BOOL SelectionActive;
extern BOOL ThisHighlighted;
// draw_outputdev.cpp
-extern void (*DrawChars)(int, int, const char *);
+extern void (*DrawChars)(HCRDC Hcr, int, int, const char *);
gboolean BlinkCursor(GtkWidget * window);
-void PaintWindow();
+void PaintWindow(HCRDC Hcr);
void ExportDrawingAsText(char *file);
void InitForDrawing(void);
void SetUpScrollbars(BOOL *horizShown, SCROLLINFO *horiz, SCROLLINFO *vert);