summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_System_Driver.H14
-rw-r--r--src/Fl_System_Driver.cxx36
-rw-r--r--src/Fl_arg.cxx6
3 files changed, 28 insertions, 28 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H
index e9f0f38c6..8ad8bb1f2 100644
--- a/FL/Fl_System_Driver.H
+++ b/FL/Fl_System_Driver.H
@@ -55,13 +55,13 @@ public:
virtual ~Fl_System_Driver();
// These flags are useful after calling XParseGeometry(). They indicate which of its arguments
// contain meaningful data upon return.
- static const int flNoValue;
- static const int flWidthValue;
- static const int flHeightValue;
- static const int flXValue;
- static const int flYValue;
- static const int flXNegative;
- static const int flYNegative;
+ static const int fl_NoValue;
+ static const int fl_WidthValue;
+ static const int fl_HeightValue;
+ static const int fl_XValue;
+ static const int fl_YValue;
+ static const int fl_XNegative;
+ static const int fl_YNegative;
// implement if the system adds unwanted program argument(s)
virtual int single_arg(const char *arg) { return 0; }
diff --git a/src/Fl_System_Driver.cxx b/src/Fl_System_Driver.cxx
index 1ef25302f..dc3c1e3b6 100644
--- a/src/Fl_System_Driver.cxx
+++ b/src/Fl_System_Driver.cxx
@@ -27,13 +27,13 @@
#include <string.h>
#include "flstring.h"
-const int Fl_System_Driver::flNoValue = 0x0000;
-const int Fl_System_Driver::flWidthValue = 0x0004;
-const int Fl_System_Driver::flHeightValue = 0x0008;
-const int Fl_System_Driver::flXValue = 0x0001;
-const int Fl_System_Driver::flYValue = 0x0002;
-const int Fl_System_Driver::flXNegative = 0x0010;
-const int Fl_System_Driver::flYNegative = 0x0020;
+const int Fl_System_Driver::fl_NoValue = 0x0000;
+const int Fl_System_Driver::fl_WidthValue = 0x0004;
+const int Fl_System_Driver::fl_HeightValue = 0x0008;
+const int Fl_System_Driver::fl_XValue = 0x0001;
+const int Fl_System_Driver::fl_YValue = 0x0002;
+const int Fl_System_Driver::fl_XNegative = 0x0010;
+const int Fl_System_Driver::fl_YNegative = 0x0020;
Fl_System_Driver::Fl_System_Driver()
@@ -138,7 +138,7 @@ static int ReadInteger(char* string, char** NextString)
int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
unsigned int* width, unsigned int* height)
{
- int mask = Fl_System_Driver::flNoValue;
+ int mask = Fl_System_Driver::fl_NoValue;
char *strind;
unsigned int tempWidth = 0, tempHeight = 0;
int tempX = 0, tempY = 0;
@@ -154,7 +154,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
if (strind == nextCharacter)
return (0);
strind = nextCharacter;
- mask |= flWidthValue;
+ mask |= fl_WidthValue;
}
if (*strind == 'x' || *strind == 'X') {
@@ -163,7 +163,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
if (strind == nextCharacter)
return (0);
strind = nextCharacter;
- mask |= flHeightValue;
+ mask |= fl_HeightValue;
}
if ((*strind == '+') || (*strind == '-')) {
@@ -173,7 +173,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
if (strind == nextCharacter)
return (0);
strind = nextCharacter;
- mask |= flXNegative;
+ mask |= fl_XNegative;
} else {
strind++;
@@ -182,7 +182,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
return(0);
strind = nextCharacter;
}
- mask |= flXValue;
+ mask |= fl_XValue;
if ((*strind == '+') || (*strind == '-')) {
if (*strind == '-') {
strind++;
@@ -190,7 +190,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
if (strind == nextCharacter)
return(0);
strind = nextCharacter;
- mask |= flYNegative;
+ mask |= fl_YNegative;
} else {
strind++;
@@ -199,7 +199,7 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
return(0);
strind = nextCharacter;
}
- mask |= flYValue;
+ mask |= fl_YValue;
}
}
@@ -208,13 +208,13 @@ int Fl_System_Driver::XParseGeometry(const char* string, int* x, int* y,
if (*strind != '\0') return (0);
- if (mask & flXValue)
+ if (mask & fl_XValue)
*x = tempX;
- if (mask & flYValue)
+ if (mask & fl_YValue)
*y = tempY;
- if (mask & flWidthValue)
+ if (mask & fl_WidthValue)
*width = tempWidth;
- if (mask & flHeightValue)
+ if (mask & fl_HeightValue)
*height = tempHeight;
return (mask);
}
diff --git a/src/Fl_arg.cxx b/src/Fl_arg.cxx
index ce8df3360..ad2a47938 100644
--- a/src/Fl_arg.cxx
+++ b/src/Fl_arg.cxx
@@ -285,15 +285,15 @@ void Fl_Window::show(int argc, char **argv) {
if (geometry) {
int fl = 0, gx = x(), gy = y(); unsigned int gw = w(), gh = h();
fl = Fl::system_driver()->XParseGeometry(geometry, &gx, &gy, &gw, &gh);
- if (fl & Fl_System_Driver::flXNegative) gx = Fl::w()-w()+gx;
- if (fl & Fl_System_Driver::flYNegative) gy = Fl::h()-h()+gy;
+ if (fl & Fl_System_Driver::fl_XNegative) gx = Fl::w()-w()+gx;
+ if (fl & Fl_System_Driver::fl_YNegative) gy = Fl::h()-h()+gy;
// int mw,mh; minsize(mw,mh);
// if (mw > gw) gw = mw;
// if (mh > gh) gh = mh;
Fl_Widget *r = resizable();
if (!r) resizable(this);
// for WIN32 we assume window is not mapped yet:
- if (fl & (Fl_System_Driver::flXValue | Fl_System_Driver::flYValue))
+ if (fl & (Fl_System_Driver::fl_XValue | Fl_System_Driver::fl_YValue))
x(-1), resize(gx,gy,gw,gh);
else
size(gw,gh);