fix formatting and use dither for adopting with format and add comments for
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Jan 2009 04:06:19 +0000 (04:06 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 5 Jan 2009 04:06:19 +0000 (04:06 +0000)
tmpo buf fmt

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@38459 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/xrender_x11/evas_engine.c
src/modules/engines/xrender_x11/evas_engine_xrender.c

index 755b045..06c6197 100644 (file)
@@ -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
index ad8ddb6..b9c2110 100644 (file)
@@ -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--;