Thread: iLiad iLiad button support
View Single Post
Old 11-04-2008, 08:22 PM   #4
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by renpytom View Post
- I had to set the SDL_VIDEO_X11_WMCLASS environment variable to "sh".

- It winds up that SDL doesn't really have support for StaticGray colors. So what I wound up doing was writing a routine that converts 24 bit color to 8 bit gray. Once I do that by hand, SDL takes care of drawing it to the string.
Hi, I have two questions.
iLiad provide 4 grayscale, why do you convert 24 bit color to 8 bit gray? I am working on a image viewer using gtk. To save memory, I wanted to load color image to grayscale, but gtk seems only support 24 bit rgb.
I don't understand Antartica's words. He said something about setting class name "sh" to make app to receive button events from contentlister. Could somebody give an explaination?
ericshliao is offline   Reply With Quote