_xr_render_surface_solid_rectangle_set(surface, 0, 0, 0, 0, 0, 0, uw, uh);
return surface;
}
- return _xr_render_surface_new(re->xinf, uw, uh, re->xinf->fmtdef, 0);
+// use target format to avoid conversion to depth when copying to screen
+// return _xr_render_surface_new(re->xinf, uw, uh, re->xinf->fmtdef, 0);
+// use 24/32bpp for tmp buf for better quality. rendering in 24/32bpp
+ return _xr_render_surface_new(re->xinf, uw, uh, re->xinf->fmt24, 0);
}
static void
rs->xinf->references++;
rs->allocated = 0;
rs->draw = draw;
- att.dither = 0;
+ att.dither = 1;
att.component_alpha = 0;
att.repeat = 0;
- rs->pic = XRenderCreatePicture(xinf->disp, rs->draw, fmt, CPRepeat | CPDither | CPComponentAlpha, &att);
+ rs->pic = XRenderCreatePicture(xinf->disp, rs->draw, fmt,
+ CPRepeat | CPDither | CPComponentAlpha, &att);
if (rs->pic == None)
{
rs->xinf->references--;