summaryrefslogtreecommitdiff
path: root/ldmicro/draw.cpp
diff options
context:
space:
mode:
authorakshay-c2019-02-19 12:16:06 +0530
committerakshay-c2019-02-19 12:16:06 +0530
commit0dbffa99fda94203c74b955f6f9fe534f30c6421 (patch)
tree9f0c9476e8c0d5e2de84308b1036b41ea1829d88 /ldmicro/draw.cpp
parenta962c0a7965f6c0d80c867ba9f3fbe797ac14de7 (diff)
downloadLDmicroQt-0dbffa99fda94203c74b955f6f9fe534f30c6421.tar.gz
LDmicroQt-0dbffa99fda94203c74b955f6f9fe534f30c6421.tar.bz2
LDmicroQt-0dbffa99fda94203c74b955f6f9fe534f30c6421.zip
Text Display in progress
Diffstat (limited to 'ldmicro/draw.cpp')
-rw-r--r--ldmicro/draw.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/ldmicro/draw.cpp b/ldmicro/draw.cpp
index dc5bf8d..ed5c6be 100644
--- a/ldmicro/draw.cpp
+++ b/ldmicro/draw.cpp
@@ -180,7 +180,7 @@ static int CountWidthOfElement(int which, void *elem, int soFar)
oops();
}
}
-/*
+
//-----------------------------------------------------------------------------
// Determine the height, in leaf element units, of a particular subcircuit.
// The height of a leaf is 1, the height of a parallel circuit is the sum of
@@ -225,7 +225,7 @@ int CountHeightOfElement(int which, void *elem)
oops();
}
}
-*/
+
//-----------------------------------------------------------------------------
// Determine the width, in leaf element units, of the widest row of the PLC
// program (i.e. loop over all the rungs and find the widest).
@@ -915,7 +915,7 @@ cmp:
return poweredAfter;
}
-
+*/
//-----------------------------------------------------------------------------
// Draw a particular subcircuit with its top left corner at *cx and *cy (in
// characters). If it is a leaf element then just print it and return; else
@@ -934,7 +934,7 @@ BOOL DrawElement(HCRDC Hcr, int which, void *elem, int *cx, int *cy, BOOL powere
ElemLeaf *leaf = (ElemLeaf *)elem;
SetBkColor(DrawWindow,Hcr, InSimulationMode ? HighlightColours.simBg :
HighlightColours.bg);
- NormText(Hcr);
+ /*NormText(Hcr);
if(elem == Selected && !InSimulationMode) {
EmphText(Hcr);
@@ -1044,7 +1044,7 @@ BOOL DrawElement(HCRDC Hcr, int which, void *elem, int *cx, int *cy, BOOL powere
}
- NormText(Hcr);
+ NormText(Hcr);*/
return poweredAfter;
}
@@ -1067,4 +1067,3 @@ void DrawEndRung(HCRDC Hcr, int cx, int cy)
DrawChars(Hcr, cx + i, cy + (POS_HEIGHT/2), "-");
}
}
-*/