[maemo-developers] [maemo-developers] running af at 24-bit depth
From: Timo Savola tsavola at movial.fiDate: Mon May 30 16:00:42 EEST 2005
- Previous message: [maemo-developers] running af at 24-bit depth
- Next message: [maemo-developers] CPU usage meter.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 2005-05-30 at 15:15 +0300, Aleksandr Koltsoff wrote: > The component that provides images to applications (sapwood-server), has a > hardcoded value in it that is set to 16. Since the process runs without a > Gdk-context, it's not easy to detect the depth directly (I'm guessing here > though). > > I've modified the server so that the depth can be controlled via an > environmental variable called SAPWOOD_DEPTH and if it's set to 24, then > sapwood will use that. Let the arms race begin... Here's another quick+dirty hack. It gets the depth from the X display so you don't have to specify it manually. I've included the patch. This is not a good solution either; it should at least use GDK, not direct Xlib calls. Also, the logic about simply choosing the first visual may be flawed... timo -------------- next part -------------- A non-text attachment was scrubbed... Name: sapwood-depth.patch Type: text/x-patch Size: 1129 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20050530/7e3899e2/attachment.bin
- Previous message: [maemo-developers] running af at 24-bit depth
- Next message: [maemo-developers] CPU usage meter.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]