diff --git a/wrlib/context.c b/wrlib/context.c index 9fff54a5..a52d702b 100644 --- a/wrlib/context.c +++ b/wrlib/context.c @@ -718,9 +718,9 @@ RCreateContext(Display *dpy, int screen_number, RContextAttributes *attribs) { unsigned long flags = 0; - if (context->attribs->render_mode == RDitheredRendering) + if (context->attribs->render_mode == RDitheredRendering) { flags |= HERMES_CONVERT_DITHER; - + } context->hermes_data->converter = Hermes_ConverterInstance(flags); } #endif diff --git a/wrlib/wrasterP.h b/wrlib/wrasterP.h new file mode 100644 index 00000000..1c1ae07e --- /dev/null +++ b/wrlib/wrasterP.h @@ -0,0 +1,24 @@ + + +#ifndef WRASTERP_H_ +#define WRASTERP_H_ + +#include + + +#include "wraster.h" + + +#ifdef HAVE_HERMES + +# include + +typedef struct RHermesData { + HermesHandle palette; + HermesHandle converter; +} RHermesData; + +#endif + + +#endif