[cairo-commit] rendertest/src rendertest.c,1.7,1.8

David Reveman commit at pdx.freedesktop.org
Mon Sep 13 10:55:26 PDT 2004


Committed by: davidr

Update of /cvs/cairo/rendertest/src
In directory gabe:/tmp/cvs-serv7754/src

Modified Files:
	rendertest.c 
Log Message:
Better component alpha testing

Index: rendertest.c
===================================================================
RCS file: /cvs/cairo/rendertest/src/rendertest.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** rendertest.c	11 Sep 2004 15:12:58 -0000	1.7
--- rendertest.c	13 Sep 2004 17:55:24 -0000	1.8
***************
*** 512,516 ****
    };
    int red_color = 0x80ff0000;
!   int blue_color = 0xff8080ff;
  
    info.w = w = surface->width;
--- 512,516 ----
    };
    int red_color = 0x80ff0000;
!   int blue_color = 0xc06060c0;
  
    info.w = w = surface->width;
***************
*** 784,787 ****
--- 784,795 ----
  
    if (TEST_CHECK) {
+     _print_info ("composite solid source in component alpha ARGB mask\n",
+                  test, info.s);
+     status = surface->backend->set_component_alpha (argb_mask, 1);
+     _render_composite_tests (&info, solid_blue, argb_mask, status);
+     surface->backend->set_component_alpha (argb_mask, 0);
+   }
+ 
+   if (TEST_CHECK) {
      status = RENDER_STATUS_SUCCESS;
      _print_info ("composite ARGB source in solid mask\n", test, info.s);




More information about the cairo-commit mailing list