drop xf86GetFlipPixels

This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-21 11:00:28 +02:00
parent cc1384abb1
commit f00660cbf5
4 changed files with 2 additions and 21 deletions

View File

@ -1372,12 +1372,6 @@ xf86GetGamma(void)
return xf86Gamma; return xf86Gamma;
} }
Bool
xf86GetFlipPixels(void)
{
return xf86FlipPixels;
}
Bool Bool
xf86ServerIsExiting(void) xf86ServerIsExiting(void)
{ {

View File

@ -27,6 +27,5 @@ void xf86EnableInputDeviceForVTSwitch(InputInfoPtr pInfo);
/* xf86Helper.c */ /* xf86Helper.c */
void xf86DeleteDriver(int drvIndex); void xf86DeleteDriver(int drvIndex);
void xf86DeleteScreen(ScrnInfoPtr pScrn); void xf86DeleteScreen(ScrnInfoPtr pScrn);
Bool xf86GetFlipPixels(void);
#endif /* _XSERVER_XF86_PRIV_H */ #endif /* _XSERVER_XF86_PRIV_H */

View File

@ -1872,17 +1872,6 @@ functions:
</para></blockquote> </para></blockquote>
<blockquote><para>
<programlisting>
Bool xf86GetFlipPixels();
</programlisting>
<blockquote><para>
Returns <constant>TRUE</constant> if <option>-flippixels</option> is
present on the command line, and <constant>FALSE</constant> otherwise.
</para></blockquote>
</para></blockquote>
</sect2> </sect2>
<sect2> <sect2>

View File

@ -24,6 +24,7 @@
#include "xf86.h" #include "xf86.h"
#include "xf86_OSproc.h" #include "xf86_OSproc.h"
#include "xf86Opt_priv.h" #include "xf86Opt_priv.h"
#include "xf86Priv.h"
#include "vgaHW.h" #include "vgaHW.h"
#include "compiler.h" #include "compiler.h"
@ -1302,10 +1303,8 @@ vgaHWInit(ScrnInfoPtr scrninfp, DisplayModePtr mode)
if (depth == 1) { if (depth == 1) {
/* Initialise the Mono map according to which bit-plane gets used */ /* Initialise the Mono map according to which bit-plane gets used */
Bool flipPixels = xf86GetFlipPixels();
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
if (((i & (1 << BIT_PLANE)) != 0) != flipPixels) if (((i & (1 << BIT_PLANE)) != 0) != xf86FlipPixels)
regp->Attribute[i] = WHITE_VALUE; regp->Attribute[i] = WHITE_VALUE;
else else
regp->Attribute[i] = BLACK_VALUE; regp->Attribute[i] = BLACK_VALUE;