Quote:
Originally Posted by renpytom
- 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?