diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-03-02 15:51:12 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-03-08 19:45:27 +0100 |
commit | f7a77f9881d5cd1d360b043d6b619216603941dd (patch) | |
tree | f51302aa48c9a0cda58d72dd4e575ae9eeadb102 /common/gdi_canvas.c | |
parent | c0fdcd1a10d0eae92fec9e00382b445d669c7428 (diff) | |
download | spice-f7a77f9881d5cd1d360b043d6b619216603941dd.tar.gz spice-f7a77f9881d5cd1d360b043d6b619216603941dd.tar.xz spice-f7a77f9881d5cd1d360b043d6b619216603941dd.zip |
Make glz_decoder non-optional canvas_base in canvas constructors
It can still be NULL, but we simplify the headers by always including it.
There is no practical performance difference here.
Diffstat (limited to 'common/gdi_canvas.c')
-rw-r--r-- | common/gdi_canvas.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c index c4750a8e..40305df8 100644 --- a/common/gdi_canvas.c +++ b/common/gdi_canvas.c @@ -1707,9 +1707,7 @@ GdiCanvas *gdi_canvas_create(HDC dc, int bits, #else GdiCanvas *gdi_canvas_create(HDC dc, int bits #endif -#ifdef USE_GLZ , SpiceGlzDecoder *glz_decoder -#endif ) { GdiCanvas *canvas; @@ -1729,11 +1727,7 @@ GdiCanvas *gdi_canvas_create(HDC dc, int bits #else init_ok = gdi_canvas_base_init(&canvas->base, bits #endif -#ifdef USE_GLZ - , - glz_decoder -#endif - ); + , glz_decoder); canvas->dc = dc; canvas->lock = lock; return canvas; |