Cosmetics...

svn path=/trunk/; revision=4923
This commit is contained in:
KJK::Hyperion 2003-06-19 03:17:56 +00:00
parent bf7fd7c66e
commit c37620bed9
4 changed files with 13 additions and 13 deletions

View file

@ -409,19 +409,19 @@ BOOL DfGenericMessage(DFWINDOW, char *, char *, int,
char *, char *, int, int, int);
#define DfTestErrorMessage(msg) \
DfGenericMessage(NULL, "Error", msg, 2, DfErrorBoxProc, \
Ok, Cancel, DF_ID_OK, DF_ID_CANCEL, TRUE)
DfOk, DfCancel, DF_ID_OK, DF_ID_CANCEL, TRUE)
#define DfErrorMessage(msg) \
DfGenericMessage(NULL, "Error", msg, 1, DfErrorBoxProc, \
Ok, NULL, DF_ID_OK, 0, TRUE)
DfOk, NULL, DF_ID_OK, 0, TRUE)
#define DfMessageBox(ttl, msg) \
DfGenericMessage(NULL, ttl, msg, 1, DfMessageBoxProc, \
Ok, NULL, DF_ID_OK, 0, TRUE)
DfOk, NULL, DF_ID_OK, 0, TRUE)
#define DfYesNoBox(msg) \
DfGenericMessage(NULL, NULL, msg, 2, DfYesNoBoxProc, \
Yes, No, DF_ID_OK, DF_ID_CANCEL, TRUE)
DfYes, DfNo, DF_ID_OK, DF_ID_CANCEL, TRUE)
#define DfCancelBox(wnd, msg) \
DfGenericMessage(wnd, "Wait...", msg, 1, DfCancelBoxProc, \
Cancel, NULL, DF_ID_CANCEL, 0, FALSE)
DfCancel, NULL, DF_ID_CANCEL, 0, FALSE)
void DfCloseCancelBox(void);
DFWINDOW DfMomentaryMessage(char *);
int DfMsgHeight(char *);

View file

@ -47,9 +47,9 @@ typedef struct {
#define DF_ENDDB {{NULL}} }};
#define Cancel " Cancel "
#define Ok " OK "
#define Yes " Yes "
#define No " No "
#define DfCancel " Cancel "
#define DfOk " OK "
#define DfYes " Yes "
#define DfNo " No "
#endif

View file

@ -356,11 +356,11 @@ static BOOL SelectionInWindow(DFWINDOW wnd, int sel)
}
static void WriteSelection(DFWINDOW wnd, int sel,
int _reverse, DFRECT *rc)
int reverse, DFRECT *rc)
{
if (DfIsVisible(wnd))
if (SelectionInWindow(wnd, sel))
DfWriteTextLine(wnd, rc, sel, _reverse);
DfWriteTextLine(wnd, rc, sel, reverse);
}
#ifdef INCLUDE_EXTENDEDSELECTIONS

View file

@ -617,7 +617,7 @@ static char *GetTextLine(DFWINDOW wnd, int selection)
}
/* ------- write a line of text to a textbox window ------- */
void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL _reverse)
void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL reverse)
{
int len = 0;
int dif = 0;
@ -783,7 +783,7 @@ void DfWriteTextLine(DFWINDOW wnd, DFRECT *rcc, int y, BOOL _reverse)
line[len] = '\0';
dif = 0;
/* ------ establish the line's main DfColor ----- */
if (_reverse) {
if (reverse) {
char *cp = line;
DfSetReverseColor(wnd);
while ((cp = strchr(cp, DF_CHANGECOLOR)) != NULL) {