summaryrefslogtreecommitdiffstats
path: root/client/red_gdi_canvas.cpp
diff options
context:
space:
mode:
authorIzik Eidus <ieidus@redhat.com>2010-04-03 05:35:31 +0300
committerIzik Eidus <ieidus@redhat.com>2010-04-03 05:35:31 +0300
commit4a208b3644ab3a5e3e950400692303bf608f0129 (patch)
treebc728d5253346a71143e179f304c5b2398abaa3a /client/red_gdi_canvas.cpp
parent27a8ec1ef476a13734c33f01653af22cc0432800 (diff)
downloadspice-4a208b3644ab3a5e3e950400692303bf608f0129.tar.gz
spice-4a208b3644ab3a5e3e950400692303bf608f0129.tar.xz
spice-4a208b3644ab3a5e3e950400692303bf608f0129.zip
libspice: add off screens support
Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'client/red_gdi_canvas.cpp')
-rw-r--r--client/red_gdi_canvas.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/red_gdi_canvas.cpp b/client/red_gdi_canvas.cpp
index 9f38dfb1..bfab546c 100644
--- a/client/red_gdi_canvas.cpp
+++ b/client/red_gdi_canvas.cpp
@@ -24,8 +24,8 @@
#include "red_pixmap_gdi.h"
GDICanvas::GDICanvas(PixmapCache& pixmap_cache, PaletteCache& palette_cache,
- GlzDecoderWindow &glz_decoder_window)
- : Canvas (pixmap_cache, palette_cache, glz_decoder_window)
+ GlzDecoderWindow &glz_decoder_window, CSurfaces &csurfaces)
+ : Canvas (pixmap_cache, palette_cache, glz_decoder_window, csurfaces)
, _pixmap (0)
{
}
@@ -38,6 +38,7 @@ GDICanvas::~GDICanvas()
void GDICanvas::destroy()
{
if (_canvas) {
+ _canvas->ops->destroy(_canvas);
_canvas = NULL;
}
destroy_pixmap();
@@ -84,6 +85,7 @@ void GDICanvas::set_mode(int width, int height, int depth)
&_pixmap->get_mutex(),
depth, &pixmap_cache().base,
&palette_cache().base,
+ &csurfaces().base,
&glz_decoder()))) {
THROW("create canvas failed");
}