Re: 8bit (256) color
Re: 8bit (256) color
- Subject: Re: 8bit (256) color
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 29 Aug 2008 22:40:07 -0700
Ok thank you. I put that in the bug report too...
On Aug 29, 2008, at 21:47, email@hidden wrote:
On Fri, 29 Aug 2008, Jeremy Huddleston - email@hidden wrote:
I just want you to tell me a program that you're trying to use that
doesn't work and give me the steps I need to take to execute said
program and see it not working.
Okay the programs I use that need 8-bit are really huge and not open
source so I put together a simple example program.
To build:
gcc pc.c -o pc -L/usr/X11/lib -lX11
To build a version with lots of debug info:
gcc -DEBUG pc.c -o pc -L/usr/X11/lib -lX11
To run:
$ ./pc
Usage ./pc class depth
examples:
./pc PseudoColor 8
./pc TrueColor 24
With an Xserver that has a 24-bit TrueColor visual:
$ ./pc TrueColor 24
With an Xserver that has a 15-bit DirectColor visual:
$ ./pc DirectColor 15
With an Xserver that has an 8-bit PseudoColor visual:
$ ./pc PseudoColor 8
You should get a window with a line or two for 10 seconds and then
the window will disapper.
mzs
PS: Right now you get the expected "visual not found" error when you
try to run it with PseudoColor 8-bit because the XMatchVisualInfo()
fails. But when I run in an 8-bit Xvnc server that works fine, as
does my legacy 8-bit X11 app.
PPS: This sample pc program is so simple it does not repaint or
anything. It is best to have X11.app and the window manager already
running and not have anything cover the window that pops-up.
Otherwise you may get a really strange window pop-up.
<pc.c> _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden