From 5f9c438f2f1635ac8a3ca122791fe86a6fa8e782 Mon Sep 17 00:00:00 2001 From: Andre Pang Date: Sat, 6 Nov 2004 16:26:06 +0000 Subject: Mac OS X XineOpenGLView: Disable initial colour support temporarily while some bugs are worked out ... CVS patchset: 7108 CVS date: 2004/11/06 16:26:06 --- src/video_out/macosx/XineOpenGLView.m | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/video_out/macosx/XineOpenGLView.m b/src/video_out/macosx/XineOpenGLView.m index 1d1f8a1e9..e939575a0 100644 --- a/src/video_out/macosx/XineOpenGLView.m +++ b/src/video_out/macosx/XineOpenGLView.m @@ -409,6 +409,16 @@ static uint32_t NSColorToYUV (NSColor *color); texture_buffer = malloc (sizeof (char) * video_width * video_height * 3); + { + // There _has_ to be a better way of doing this ... + + uint32_t *p, *q; + p = (uint32_t *) texture_buffer; + q = (uint32_t *) (char *) (texture_buffer + (sizeof(char) * video_width * video_height * 3)); + + for (; p < q; p++) *p = initialColorYUV; + } + } if (!initialColorYUVIsSet && initialColor) @@ -417,16 +427,6 @@ static uint32_t NSColorToYUV (NSColor *color); initialColorYUVIsSet = YES; } - { - // There _has_ to be a better way of doing this ... - - uint32_t *p, *q; - p = (uint32_t *) texture_buffer; - q = (uint32_t *) (char *) (texture_buffer + (sizeof(char) * video_width * video_height * 3)); - - for (; p < q; p++) *p = initialColorYUV; - } - /* Create textures */ glGenTextures (1, &i_texture); -- cgit v1.2.3