diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-03-02 15:41:08 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-03-08 19:45:27 +0100 |
commit | c0fdcd1a10d0eae92fec9e00382b445d669c7428 (patch) | |
tree | 590429cdba9b115c90e5beaec90f1981ed513121 /common/gdi_canvas.c | |
parent | 04b35fe7ff6b09885a2af9ef8627b45b892e3fb0 (diff) | |
download | spice-c0fdcd1a10d0eae92fec9e00382b445d669c7428.tar.gz spice-c0fdcd1a10d0eae92fec9e00382b445d669c7428.tar.xz spice-c0fdcd1a10d0eae92fec9e00382b445d669c7428.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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index ae477db4..c4750a8e 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; |