[cairo] request for cairo_win32_surface_get_width/height()

Vladimir Vukicevic vladimir at pobox.com
Tue Apr 28 10:47:53 PDT 2009


On 4/28/09 1:08 AM, Theo Veenker wrote:
> Hi,
>
> I like to request cairo_win32_surface_get_width/height() to be added to
> the win32 surface support. Cairo_win32_surface_create() uses GetClipBox()
> to determine the size to be used for the surface. But when calling
> cairo_win32_surface_create() from a WM_WINDOWPOSCHANGED or WM_SIZE
> notification GetClipBox() initially returns a NULLREGION (although the
> notification reports the actual window size) and then later it clip
> region becomes valid. There is no way of telling which size the actual
> surface has once it has been created. I can hack my way around it, but
> having these APIs would be nice.

You really shouldn't be doing any rendering from WM_WINDOWPOSCHANGED or 
WM_SIZE..

     - Vlad


More information about the cairo mailing list