Re: [PATCH 09/18] Xfbdev: Treat 1 bpp pseudocolor as monochrome

2013-04-08 Thread Keith Packard
Geert Uytterhoeven ge...@linux-m68k.org writes: miCreateDefColormap() only preallocates black and white pixels if depth 1. I think you should also set pScreen-whitePixel and pScreen-blackPixel to match the MONO01 definitions; it seems like you're taking advantage of the behavior of

Re: [PATCH 09/18] Xfbdev: Treat 1 bpp pseudocolor as monochrome

2013-04-08 Thread Geert Uytterhoeven
On Mon, Apr 8, 2013 at 6:55 PM, Keith Packard kei...@keithp.com wrote: Geert Uytterhoeven ge...@linux-m68k.org writes: miCreateDefColormap() only preallocates black and white pixels if depth 1. I think you should also set pScreen-whitePixel and pScreen-blackPixel to match the MONO01

Re: [PATCH 09/18] Xfbdev: Treat 1 bpp pseudocolor as monochrome

2013-04-08 Thread Keith Packard
Geert Uytterhoeven ge...@linux-m68k.org writes: Geert Uytterhoeven ge...@linux-m68k.org writes: miCreateDefColormap() only preallocates black and white pixels if depth 1. I think you should also set pScreen-whitePixel and pScreen-blackPixel to match the MONO01 definitions; it seems like

[PATCH 09/18] Xfbdev: Treat 1 bpp pseudocolor as monochrome

2013-03-27 Thread Geert Uytterhoeven
miCreateDefColormap() only preallocates black and white pixels if depth 1. Signed-off-by: Geert Uytterhoeven ge...@linux-m68k.org --- hw/kdrive/fbdev/fbdev.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index