[cairo] Problems with InvalidateRect under Windows

Adrian Lopez adrianlopezroche at gmail.com
Mon Jun 7 14:06:52 PDT 2010


That should work fine. In fact, if I modify my code to use the DC returned
by BeginPaint it renders just fine apart from the horrible flickering.

On Mon, Jun 7, 2010 at 4:35 PM, Tim Teulings <tim at framstag.com> wrote:

> Hello!
>
>
>
>  Hi. I'm using Cairo 1.8.10 (precompiled from the GTK+ for Windows page).
>> I don't know what version of pixman, if any, it's compiled against.
>>
>
> OK, that is different.
>
>
>  My drawing code looks like this:
>>
>
> You are creating an offscreen buffer to draw into and then copy the content
> of the buffer back to original HDC. This is similar what I'm doing under X11
> (should use double buffering support for a better version of it) but under
> Windows I'm just doing:
>
>          dc=::BeginPaint(wnd,&ps);
>
>          surface=cairo_win32_surface_create(dc);
>          cairo=cairo_create(surface);
>
> and use that surface and cairo_t for direct drawing into the DC returned by
> BeginPaint().
>
> Shoulden't this work, too (it does not always - as described)?
>
>
> --
> Gruß...
>   Tim
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100607/5df8419e/attachment.htm>


More information about the cairo mailing list