diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-02-17 21:33:23 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-02-23 22:52:06 +0100 |
commit | 98dde80ed3c01f6ac08bcd14d34d6643da9f8418 (patch) | |
tree | a872eb82b7012195c4dd08dc7d2115f0cfac7e71 /client/x11/red_window.cpp | |
parent | 8f912e49179803fa640b3bddf75b62e81b2f7178 (diff) | |
download | spice-98dde80ed3c01f6ac08bcd14d34d6643da9f8418.tar.gz spice-98dde80ed3c01f6ac08bcd14d34d6643da9f8418.tar.xz spice-98dde80ed3c01f6ac08bcd14d34d6643da9f8418.zip |
Replace custom region implementation with pixman_region32_t
pixman_region32_t is an efficient well tested region implementation (its
the one used in X) that we already depend on via pixman and use in
some places. No need to have a custom region implementation.
Diffstat (limited to 'client/x11/red_window.cpp')
-rw-r--r-- | client/x11/red_window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp index 49c5533c..a38f7db6 100644 --- a/client/x11/red_window.cpp +++ b/client/x11/red_window.cpp @@ -1835,7 +1835,10 @@ public: if (region_is_empty(_region)) { bbox.left = bbox.right = bbox.top = bbox.bottom = 0; } else { - bbox = _region->bbox; + bbox.left = _region->extents.x1; + bbox.top = _region->extents.y1; + bbox.right = _region->extents.x2; + bbox.bottom = _region->extents.y2; } } |