forked from enlightenment/efl
fix formatting and use dither for adopting with format and add comments for
tmpo buf fmt SVN revision: 38459
This commit is contained in:
parent
5974b5a1fc
commit
4959d816f6
|
@ -251,7 +251,10 @@ eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, i
|
|||
_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
|
||||
|
|
|
@ -116,10 +116,11 @@ _xr_render_surface_format_adopt(Ximage_Info *xinf, Drawable draw, int w, int h,
|
|||
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--;
|
||||
|
|
Loading…
Reference in New Issue