From b7d4f00545b2e6831bde0c0cb5f8229b5b9b2299 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 21 May 2025 10:54:07 +0200 Subject: [PATCH] xfree86: xf86.h: drop xf86GetFlipPixels() Not used externally, and not actually necessary - we can use the xf86FlipPixels field directly. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 -- hw/xfree86/common/xf86Helper.c | 6 ------ hw/xfree86/doc/ddxDesign.xml | 11 ----------- hw/xfree86/vgahw/vgaHW.c | 5 ++--- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 366617c54..de77adb7f 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -245,8 +245,6 @@ xf86GetVerbosity(void); extern _X_EXPORT Gamma xf86GetGamma(void); extern _X_EXPORT Bool -xf86GetFlipPixels(void); -extern _X_EXPORT Bool xf86ServerIsExiting(void); extern _X_EXPORT Bool xf86ServerIsOnlyDetecting(void); diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 14d2a3423..abea1279b 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -1371,12 +1371,6 @@ xf86GetGamma(void) return xf86Gamma; } -Bool -xf86GetFlipPixels(void) -{ - return xf86FlipPixels; -} - Bool xf86ServerIsExiting(void) { diff --git a/hw/xfree86/doc/ddxDesign.xml b/hw/xfree86/doc/ddxDesign.xml index 86f01140f..08009ad11 100644 --- a/hw/xfree86/doc/ddxDesign.xml +++ b/hw/xfree86/doc/ddxDesign.xml @@ -1872,17 +1872,6 @@ functions: -
- - Bool xf86GetFlipPixels(); - -
- Returns TRUE if is - present on the command line, and FALSE otherwise. -
- -
- diff --git a/hw/xfree86/vgahw/vgaHW.c b/hw/xfree86/vgahw/vgaHW.c index c897388f8..886d3c76c 100644 --- a/hw/xfree86/vgahw/vgaHW.c +++ b/hw/xfree86/vgahw/vgaHW.c @@ -24,6 +24,7 @@ #include "xf86.h" #include "xf86_OSproc.h" #include "xf86Opt_priv.h" +#include "xf86Priv.h" #include "vgaHW.h" #include "compiler.h" @@ -1302,10 +1303,8 @@ vgaHWInit(ScrnInfoPtr scrninfp, DisplayModePtr mode) if (depth == 1) { /* Initialise the Mono map according to which bit-plane gets used */ - Bool flipPixels = xf86GetFlipPixels(); - 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; else regp->Attribute[i] = BLACK_VALUE;