Can't correctly set palette

From: Somsak Sriprayoonsakul <hidden>
Date: 2003-08-06 08:27:30

Hello,
    I am trying to create a graphical RedHat Linux bootup using Frame Buffer
pixmap drawing (with the help of bogl library with bogl_put function). After
successfully display the image from the command prompt. I try to add my
image-drawing command to rc script, however, the image appeared to use wrong
palette, all color are distorted. It seems that if I am trying to display
the image in the different VT than the Vt that is running the program, the
color palette will always distort (using chvt xx && ./show_image). I try to
get the frame buffer palette using ioctl(FBIOGETCMAP) but it alwasy return
zero fb_cmap. What have I done wrong? Here are the details of my platform

frame buffer driver: vesafb (passing vga=0x301 at boot time)
image: 640x480 - 7 bit indexed color.

I also try libfbx and result is the same.

PS: Don't tell me to use default color palette. I need to display a nice 7
bit image in console mode.

------------------------------------------------------------------------
Somsak Sriprayoonsakul

High Performance Computing and Networking Center
Kasetsart University
ssy@hpcnc.cpe.ku.ac.th
----------------------------------------------------------------------------
---



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help