[cairo] Problem with cairo in windows
David Larsson
laserallan at gmail.com
Mon Apr 20 13:28:44 PDT 2009
Cool, I didn't know about pastebin.
Here it is:
http://pastebin.com/mfeb0e31
It's based on an example called stars.c which renders some stars, the
lines breaking the rendering is 50 and 51.
My speculation, which might be completely wrong, is that there is some
kind of hardware acceleration going on when rendering stuff in
windows. This stuff is somehow dependent on some kind of device handle
or so, that is affected by pixel toaster when it creates windows and
initializes direct x devices making it stop rendering properly.
/David
On Mon, Apr 20, 2009 at 8:52 AM, Gerdus van Zyl <gerdusvanzyl at gmail.com> wrote:
> It would be useful to see your code, could you post it to a pastebin?
>
> On Sun, Apr 19, 2009 at 11:27 PM, David Larsson <laserallan at gmail.com> wrote:
>> Hi!
>>
>> I have a silly problem with Cairo for windows, that you might be able
>> to help me to figure out before I start doing some serious debugging.
>> I'm trying to use cairo to render to a image buffer that I want to
>> display on in a window using pixel toaster
>> (http://www.pixeltoaster.com/) which is a minimalistic cross platform
>> framebuffer library.
>>
>> The rendering works perfect as long as I don't open a screen with
>> pixeltoaster, but only output the image as a png.
>> However, when I create a pixeltoaster display it seems likes cairo
>> just stops drawing. I've verified that not only my screen but png
>> output of the image rendered is black.
>>
>> Can anyone see why a bunch of window creation code and directx 9
>> object creation code could make cairo stop drawing?
>> I'm getting no indication of errors by failing function calls etc.
>>
>> I'm using the windows build of cairo 1.8.6 from gtk+ from
>> http://www.gtk.org/download-windows.html as suggested on
>> http://cairographics.org/download/
>>
>> I know this is difficult to debug without all code in front of you,
>> but I just want to check if someone can see any potential problem here
>> before I build cairo from source code to be able to debug what's
>> actually going on.
>>
>> Thanks in advance
>> /David
>> _______________________________________________
>> cairo mailing list
>> cairo at cairographics.org
>> http://lists.cairographics.org/mailman/listinfo/cairo
>>
>
More information about the cairo
mailing list