diff options
-rw-r--r-- | hw/kdrive/ephyr/ephyr.c | 3 | ||||
-rw-r--r-- | hw/kdrive/ephyr/ephyrinit.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index 12c708616..0b04d6043 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -62,6 +62,7 @@ typedef struct _EphyrInputPrivate { Bool EphyrWantGrayScale = 0; Bool EphyrWantResize = 0; +Bool EphyrBitmapBpp = 1; Bool host_has_extension(xcb_extension_t *extension) @@ -638,6 +639,8 @@ ephyrInitScreen(ScreenPtr pScreen) hostx_set_win_title(screen, "(ctrl+shift grabs mouse and keyboard)"); pScreen->CreateColormap = ephyrCreateColormap; + fbSetBitmapBpp(pScreen, EphyrBitmapBpp); + #ifdef XV if (!ephyrNoXV) { if (!ephyrInitVideo(pScreen)) { diff --git a/hw/kdrive/ephyr/ephyrinit.c b/hw/kdrive/ephyr/ephyrinit.c index 3230e707e..eb84bf33d 100644 --- a/hw/kdrive/ephyr/ephyrinit.c +++ b/hw/kdrive/ephyr/ephyrinit.c @@ -33,6 +33,7 @@ extern Window EphyrPreExistingHostWin; extern Bool EphyrWantGrayScale; extern Bool EphyrWantResize; +extern Bool EphyrBitmapBpp; extern Bool kdHasPointer; extern Bool kdHasKbd; @@ -310,7 +311,14 @@ ddxProcessArgument(int argc, char **argv, int i) !strcmp(argv[i], "-class") || !strcmp(argv[i], "-geometry") || !strcmp(argv[i], "-scrns")) { return 2; + } else if (!strcmp(argv[i], "-bitmap8")) { + EphyrBitmapBpp = 8; + return 1; + } else if (!strcmp(argv[i], "-bitmap32")) { + EphyrBitmapBpp = 32; + return 1; } + /* end Xnest compat */ return KdProcessArgument(argc, argv, i); |