The macros for both depth are the same, reuse the definition. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/glz-encode.tmpl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/server/glz-encode.tmpl.c b/server/glz-encode.tmpl.c index 4874a94a..8e2dc03e 100644 --- a/server/glz-encode.tmpl.c +++ b/server/glz-encode.tmpl.c @@ -89,21 +89,18 @@ #ifdef LZ_RGB24 #define PIXEL rgb24_pixel_t #define FNAME(name) glz_rgb24_##name -#define ENCODE_PIXEL(e, pix) {encode(e, (pix).b); encode(e, (pix).g); encode(e, (pix).r);} -#define MIN_REF_ENCODE_SIZE 2 -#define MAX_REF_ENCODE_SIZE 2 #endif #ifdef LZ_RGB32 #define PIXEL rgb32_pixel_t #define FNAME(name) glz_rgb32_##name -#define ENCODE_PIXEL(e, pix) {encode(e, (pix).b); encode(e, (pix).g); encode(e, (pix).r);} -#define MIN_REF_ENCODE_SIZE 2 -#define MAX_REF_ENCODE_SIZE 2 #endif #if defined(LZ_RGB24) || defined(LZ_RGB32) +#define ENCODE_PIXEL(e, pix) {encode(e, (pix).b); encode(e, (pix).g); encode(e, (pix).r);} +#define MIN_REF_ENCODE_SIZE 2 +#define MAX_REF_ENCODE_SIZE 2 #define GET_r(pix) ((pix).r) #define GET_g(pix) ((pix).g) #define GET_b(pix) ((pix).b) -- 2.17.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel