[cairo-commit] glitz/src/agl glitz_agl_format.c,1.4,1.5

David Reveman commit at pdx.freedesktop.org
Tue Nov 29 14:41:29 PST 2005


Committed by: davidr

Update of /cvs/cairo/glitz/src/agl
In directory gabe:/tmp/cvs-serv1190/src/agl

Modified Files:
	glitz_agl_format.c 
Log Message:
Add YUV surfaces

Index: glitz_agl_format.c
===================================================================
RCS file: /cvs/cairo/glitz/src/agl/glitz_agl_format.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- glitz_agl_format.c	9 Nov 2005 12:22:04 -0000	1.4
+++ glitz_agl_format.c	29 Nov 2005 22:41:27 -0000	1.5
@@ -153,6 +153,9 @@
     i = score[0] = score[1] = 0;
 
     for (; i < 2; i++) {
+	if (format[i]->d.color.fourcc != GLITZ_FOURCC_RGB)
+	    score[i] -= 1000;
+
 	if (format[i]->d.color.red_size) {
 	    if (format[i]->d.color.red_size == 8)
 		score[i] += 5;
@@ -232,6 +235,7 @@
 
     format.types	= GLITZ_DRAWABLE_TYPE_WINDOW_MASK;
     format.d.id		= 0
+    format.color.fourcc = GLITZ_FOURCC_RGB;
 
     n_attribs_list = sizeof (_attribs_list) / sizeof (GLint *);
 



More information about the cairo-commit mailing list