From 30eed8c08088b733e4565a590c371083e8180205 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 13 Jul 2021 10:32:42 +0200 Subject: [PATCH] Remove undocumented -linebias argument This is a development flag with no real use, so remove it to clean up the code. --- unix/xserver/hw/vnc/xvnc.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c index 2312defb..86ec1856 100644 --- a/unix/xserver/hw/vnc/xvnc.c +++ b/unix/xserver/hw/vnc/xvnc.c @@ -78,7 +78,6 @@ extern char buildtime[]; #define VFB_DEFAULT_WIDTH 1024 #define VFB_DEFAULT_HEIGHT 768 #define VFB_DEFAULT_DEPTH 24 -#define VFB_DEFAULT_LINEBIAS 0 typedef struct { int width; @@ -91,8 +90,6 @@ typedef struct { } vfbFramebufferInfo, *vfbFramebufferInfoPtr; typedef struct { - unsigned int lineBias; - vfbFramebufferInfo fb; Bool pixelFormatDefined; @@ -135,7 +132,6 @@ vfbInitializeDefaultScreens(void) int i; for (i = 0; i < MAXSCREENS; i++) { - vfbScreens[i].lineBias = VFB_DEFAULT_LINEBIAS; vfbScreens[i].fb.width = VFB_DEFAULT_WIDTH; vfbScreens[i].fb.height = VFB_DEFAULT_HEIGHT; vfbScreens[i].fb.pfbMemory = NULL; @@ -236,7 +232,6 @@ ddxUseMsg(void) ErrorF("-pixdepths list-of-int support given pixmap depths\n"); ErrorF("+/-render turn on/off RENDER extension support" "(default on)\n"); - ErrorF("-linebias n adjust thin line pixelization\n"); ErrorF("-geometry WxH set screen 0's width, height\n"); ErrorF("-depth D set screen 0's depth\n"); @@ -358,25 +353,6 @@ ddxProcessArgument(int argc, char *argv[], int i) return 1; } - if (strcmp(argv[i], "-linebias") == 0) { /* -linebias n */ - unsigned int linebias; - - CHECK_FOR_REQUIRED_ARGUMENTS(1); - ++i; - linebias = atoi(argv[i]); - if (-1 == lastScreen) { - int j; - - for (j = 0; j < MAXSCREENS; j++) { - vfbScreens[j].lineBias = linebias; - } - } - else { - vfbScreens[lastScreen].lineBias = linebias; - } - return 2; - } - if (strcmp(argv[i], "-geometry") == 0) { CHECK_FOR_REQUIRED_ARGUMENTS(1); ++i; @@ -1205,8 +1181,6 @@ vfbScreenInit(ScreenPtr pScreen, int argc, char **argv) if (!ret) return FALSE; - miSetZeroLineBias(pScreen, pvfb->lineBias); - return TRUE; } /* end vfbScreenInit */ -- 2.39.5