diff options
Diffstat (limited to 'ldmicro/draw.cpp')
-rw-r--r-- | ldmicro/draw.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/ldmicro/draw.cpp b/ldmicro/draw.cpp index a231745..78232ba 100644 --- a/ldmicro/draw.cpp +++ b/ldmicro/draw.cpp @@ -49,12 +49,12 @@ BOOL ThisHighlighted; if((gy) >= DISPLAY_MATRIX_Y_SIZE || (gy) < 0) oops(); \ } -//----------------------------------------------------------------------------- -// The display code is the only part of the program that knows how wide a -// rung will be when it's displayed; so this is the only convenient place to -// warn the user and undo their changes if they created something too wide. -// This is not very clean. -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // The display code is the only part of the program that knows how wide a +// // rung will be when it's displayed; so this is the only convenient place to +// // warn the user and undo their changes if they created something too wide. +// // This is not very clean. +// //----------------------------------------------------------------------------- // static BOOL CheckBoundsUndoIfFails(int gx, int gy) // { // if(gx >= DISPLAY_MATRIX_X_SIZE || gx < 0 || @@ -246,10 +246,10 @@ int ProgCountWidestRow(void) return max; } -//----------------------------------------------------------------------------- -// Draw a vertical wire one leaf element unit high up from (cx, cy), where cx -// and cy are in charcter units. -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // Draw a vertical wire one leaf element unit high up from (cx, cy), where cx +// // and cy are in charcter units. +// //----------------------------------------------------------------------------- // static void VerticalWire(int cx, int cy) // { // int j; @@ -260,9 +260,9 @@ int ProgCountWidestRow(void) // DrawChars(cx, cy + (POS_HEIGHT/2 - POS_HEIGHT), "+"); // } -//----------------------------------------------------------------------------- -// Convenience functions for making the text colors pretty, for DrawElement. -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // Convenience functions for making the text colors pretty, for DrawElement. +// //----------------------------------------------------------------------------- // static void NormText(void) // { // SetTextColor(Hdc, InSimulationMode ? HighlightColours.simOff : @@ -301,11 +301,11 @@ int ProgCountWidestRow(void) // } // } -//----------------------------------------------------------------------------- -// Count the length of a string, in characters. Nonstandard because the -// string may contain special characters to indicate formatting (syntax -// highlighting). -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // Count the length of a string, in characters. Nonstandard because the +// // string may contain special characters to indicate formatting (syntax +// // highlighting). +// //----------------------------------------------------------------------------- // static int FormattedStrlen(char *str) // { // int l = 0; @@ -318,10 +318,10 @@ int ProgCountWidestRow(void) // return l; // } -//----------------------------------------------------------------------------- -// Draw a string, centred in the space of a single position, with spaces on -// the left and right. Draws on the upper line of the position. -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // Draw a string, centred in the space of a single position, with spaces on +// // the left and right. Draws on the upper line of the position. +// //----------------------------------------------------------------------------- // static void CenterWithSpaces(int cx, int cy, char *str, BOOL powered, // BOOL isName) // { @@ -332,10 +332,10 @@ int ProgCountWidestRow(void) // if(isName) BodyText(); // } -//----------------------------------------------------------------------------- -// Like CenterWithWires, but for an arbitrary width position (e.g. for ADD -// and SUB, which are double-width). -//----------------------------------------------------------------------------- +// //----------------------------------------------------------------------------- +// // Like CenterWithWires, but for an arbitrary width position (e.g. for ADD +// // and SUB, which are double-width). +// //----------------------------------------------------------------------------- // static void CenterWithWiresWidth(int cx, int cy, char *str, BOOL before, // BOOL after, int totalWidth) // { |