summaryrefslogtreecommitdiffstats
path: root/common/gdi_canvas.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-03-02 15:41:08 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:25:39 +0100
commita8e126f5240ae2bc73cb39c504e8af38cc0d2d51 (patch)
treefb99db27f7031cf4f9e180d6c05c176ede05756b /common/gdi_canvas.c
parent2f29c42fbf7d490b95e0026deb42911ab9c0fa2f (diff)
downloadspice-common-a8e126f5240ae2bc73cb39c504e8af38cc0d2d51.tar.gz
spice-common-a8e126f5240ae2bc73cb39c504e8af38cc0d2d51.tar.xz
spice-common-a8e126f5240ae2bc73cb39c504e8af38cc0d2d51.zip
Make canvas Glz decoder integration nicer
We use a dynamic interface similar to e.g. SpiceImageCache instead of passing both function and opaque
Diffstat (limited to 'common/gdi_canvas.c')
-rw-r--r--common/gdi_canvas.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index ae477db..c4750a8 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -1708,7 +1708,7 @@ GdiCanvas *gdi_canvas_create(HDC dc, int bits,
GdiCanvas *gdi_canvas_create(HDC dc, int bits
#endif
#ifdef USE_GLZ
- , void *glz_decoder_opaque, glz_decode_fn_t glz_decode
+ , SpiceGlzDecoder *glz_decoder
#endif
)
{
@@ -1731,8 +1731,7 @@ GdiCanvas *gdi_canvas_create(HDC dc, int bits
#endif
#ifdef USE_GLZ
,
- glz_decoder_opaque,
- glz_decode
+ glz_decoder
#endif
);
canvas->dc = dc;