mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-07 04:00:31 +01:00
win32: Explain the purpose of the surface extents
It wasn't immediately obvious to me what the purpose of having extents instead of just a size was.
This commit is contained in:
parent
9f92901b09
commit
bf75c9542d
1 changed files with 9 additions and 0 deletions
|
|
@ -72,6 +72,15 @@ typedef struct _cairo_win32_surface {
|
|||
|
||||
cairo_surface_t *image;
|
||||
|
||||
/* We use the x and y parts of extents for situations where
|
||||
* we're not supposed to draw to the entire surface.
|
||||
* For example, during a paint event a program will get
|
||||
* a DC that has been clipped to the dirty region.
|
||||
* A cairo surface constructed for that DC will have extents
|
||||
* that match bounds of the clipped region.
|
||||
*
|
||||
* jrmuizel: I'm not sure if storing these extents instead
|
||||
* of just using the size is better... */
|
||||
cairo_rectangle_int_t extents;
|
||||
|
||||
/* Initial clip bits
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue