[cairo-bugs] [Bug 68152] Redraw Surface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 16 01:23:04 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=68152

Uli Schlachter <psychon at znc.in> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Uli Schlachter <psychon at znc.in> ---
Cairo let's you draw to surface. That's it. It has nothing to do with automatic
redraw when needed.

This is why normally Gtk uses double buffering. It let's you draw to an
off-screen surface and then copies that to the screen whenever needed. You
still have to implement the "draw" signal on your widgets to redraw when then
needed (e.g. window was resized and thus your widget now has more/less space
available).

So alltogether, your code has to handle redrawing, because only your code can
do so. There is no bug here, neither in Gtk nor in Cairo.

(I don't know why the double buffering does not work in your case, but I guess
you somehow disabled that. I have never really used Gtk and thus cannot say for
sure and certainly not without looking at your code.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130816/c3ceb22d/attachment.html>


More information about the cairo-bugs mailing list