diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-21 12:34:08 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-04-23 16:36:35 +0200 |
commit | ecc51c6478f7bd379598021c2507f5cf13b21366 (patch) | |
tree | e1339856e7acda46d4977df08c45009c61711bdd /client | |
parent | 1efe358a05661054eac79dfdb88a55982de10760 (diff) | |
download | spice-ecc51c6478f7bd379598021c2507f5cf13b21366.tar.gz spice-ecc51c6478f7bd379598021c2507f5cf13b21366.tar.xz spice-ecc51c6478f7bd379598021c2507f5cf13b21366.zip |
Create screen composit area in same format as window
This way we don't have to convert when drawing to it, or drawing it to
the dc.
Diffstat (limited to 'client')
-rw-r--r-- | client/screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/screen.cpp b/client/screen.cpp index 7edca121..a1ce8886 100644 --- a/client/screen.cpp +++ b/client/screen.cpp @@ -171,8 +171,8 @@ void RedScreen::destroy_composit_area() void RedScreen::create_composit_area() { destroy_composit_area(); - _composit_area = new RedPixmapCairo(_size.x, _size.y, RedPixmap::RGB32, - false, NULL); + _composit_area = new RedPixmapCairo(_size.x, _size.y, _window.get_format(), + false, -1); } void RedScreen::adjust_window_rect(int x, int y) |