Re: [Sugar-devel] [PATCH] Use the gdk window to get the depth of the preview pixmap - SL#3804

2012-08-17 Thread Simon Schampijer
On 08/17/2012 03:06 PM, Manuel QuiƱones wrote: This prevents harcoding the depth, and uses the one from the gdk window. For this, the preview has to be done after the window is realized, so the code is wrapped in the expose-event callback. Also add a white background to the preview, otherwise a

[Sugar-devel] [PATCH] Use the gdk window to get the depth of the preview pixmap - SL#3804

2012-08-17 Thread Manuel QuiƱones
This prevents harcoding the depth, and uses the one from the gdk window. For this, the preview has to be done after the window is realized, so the code is wrapped in the expose-event callback. Also add a white background to the preview, otherwise artifacts appear for previews smaller than the pre