diff options
author | Adam Jackson <ajax@redhat.com> | 2018-08-28 15:58:54 -0400 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2018-09-27 16:50:22 +0000 |
commit | d1c00c859c6676fbb540420c9055788bc19cb18f (patch) | |
tree | a69a712c5bd2c2de0738d1b042495f5918282425 /hw/xfree86/common | |
parent | 2bd631810d910975a5df55c0e76b02856d53688d (diff) |
xfree86: Remove -flippixels
No supported driver supports 1bpp anymore, nor has in a very long time.
This option only worked with vgahw anyway.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r-- | hw/xfree86/common/xf86.h | 10 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Globals.c | 1 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Helper.c | 16 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 5 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Priv.h | 1 | ||||
-rw-r--r-- | hw/xfree86/common/xf86str.h | 1 |
6 files changed, 2 insertions, 32 deletions
diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 8d0cb0532..927a7a7f1 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -79,14 +79,6 @@ extern _X_EXPORT Bool xf86DRI2Enabled(void); #define XF86SCRNINFO(p) xf86ScreenToScrn(p) -#define XF86FLIP_PIXELS() \ - do { \ - if (xf86GetFlipPixels()) { \ - pScreen->whitePixel = (pScreen->whitePixel) ? 0 : 1; \ - pScreen->blackPixel = (pScreen->blackPixel) ? 0 : 1; \ - } \ - while (0) - #define BOOLTOSTRING(b) ((b) ? "TRUE" : "FALSE") /* Compatibility functions for pre-input-thread drivers */ @@ -286,8 +278,6 @@ xf86GetWeight(void); extern _X_EXPORT Gamma xf86GetGamma(void); extern _X_EXPORT Bool -xf86GetFlipPixels(void); -extern _X_EXPORT Bool xf86ServerIsExiting(void); extern _X_EXPORT Bool xf86ServerIsResetting(void); diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c index 193f17aec..8f7909d11 100644 --- a/hw/xfree86/common/xf86Globals.c +++ b/hw/xfree86/common/xf86Globals.c @@ -187,7 +187,6 @@ int xf86FbBpp = -1; int xf86Depth = -1; rgb xf86Weight = { 0, 0, 0 }; -Bool xf86FlipPixels = FALSE; Gamma xf86Gamma = { 0.0, 0.0, 0.0 }; Bool xf86AllowMouseOpenFail = FALSE; diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 40ecf37bb..3b4811053 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -950,14 +950,8 @@ xf86SetDpi(ScrnInfoPtr pScrn, int x, int y) void xf86SetBlackWhitePixels(ScreenPtr pScreen) { - if (xf86FlipPixels) { - pScreen->whitePixel = 0; - pScreen->blackPixel = 1; - } - else { - pScreen->whitePixel = 1; - pScreen->blackPixel = 0; - } + pScreen->whitePixel = 1; + pScreen->blackPixel = 0; } /* @@ -1399,12 +1393,6 @@ xf86GetGamma(void) } Bool -xf86GetFlipPixels(void) -{ - return xf86FlipPixels; -} - -Bool xf86ServerIsExiting(void) { return (dispatchException & DE_TERMINATE) == DE_TERMINATE; diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index cc34a1952..ef8d4faf6 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -978,10 +978,6 @@ ddxProcessArgument(int argc, char **argv, int i) xf86ConfigDir = argv[i + 1]; return 2; } - if (!strcmp(argv[i], "-flipPixels")) { - xf86FlipPixels = TRUE; - return 1; - } #ifdef XF86VIDMODE if (!strcmp(argv[i], "-disableVidMode")) { xf86VidModeDisabled = TRUE; @@ -1257,7 +1253,6 @@ ddxUseMsg(void) ErrorF ("-pointer name specify the core pointer InputDevice name\n"); ErrorF("-nosilk disable Silken Mouse\n"); - ErrorF("-flipPixels swap default black/white Pixel values\n"); #ifdef XF86VIDMODE ErrorF("-disableVidMode disable mode adjustments with xvidtune\n"); ErrorF diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h index b425bfb69..857a92473 100644 --- a/hw/xfree86/common/xf86Priv.h +++ b/hw/xfree86/common/xf86Priv.h @@ -68,7 +68,6 @@ extern _X_EXPORT char *xf86KeyboardName; extern _X_EXPORT int xf86FbBpp; extern _X_EXPORT int xf86Depth; extern _X_EXPORT rgb xf86Weight; -extern _X_EXPORT Bool xf86FlipPixels; extern _X_EXPORT Gamma xf86Gamma; /* Other parameters */ diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h index edd91c745..f38f6cd68 100644 --- a/hw/xfree86/common/xf86str.h +++ b/hw/xfree86/common/xf86str.h @@ -640,7 +640,6 @@ typedef struct _ScrnInfoRec { int videoRam; /* amount of video ram (kb) */ unsigned long memPhysBase; /* Physical address of FB */ unsigned long fbOffset; /* Offset of FB in the above */ - Bool flipPixels; /* swap default black/white */ void *options; /* Allow screens to be enabled/disabled individually */ |