[cairo-commit] cairo/src cairo_gl_surface.c,1.3,1.4

David Reveman commit at pdx.freedesktop.org
Sun Apr 25 05:11:10 PDT 2004


Committed by: davidr

Update of /cvs/cairo/cairo/src
In directory pdx:/tmp/cvs-serv32636/src

Modified Files:
	cairo_gl_surface.c 
Log Message:
Fixed conversion of pixman_box16_t to glitz_rectangle_t

Index: cairo_gl_surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_gl_surface.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** a/cairo_gl_surface.c	25 Apr 2004 11:02:38 -0000	1.3
--- b/cairo_gl_surface.c	25 Apr 2004 12:11:07 -0000	1.4
***************
*** 774,781 ****
  
      for (i = 0; i < n; n++, box++) {
! 	clip_rects[i].x = (short) (box->x1 >> 16);
! 	clip_rects[i].y = (short) (box->y1 >> 16);
! 	clip_rects[i].width = (unsigned short) ((box->x2 - box->x1) >> 16);
! 	clip_rects[i].height = (unsigned short) ((box->y2 - box->y1) >> 16);
      }
  
--- 774,781 ----
  
      for (i = 0; i < n; n++, box++) {
! 	clip_rects[i].x = box->x1;
! 	clip_rects[i].y = box->y1;
! 	clip_rects[i].width = (unsigned short) (box->x2 - box->x1);
! 	clip_rects[i].height = (unsigned short) (box->y2 - box->y1);
      }
  





More information about the cairo-commit mailing list