diff options
author | Andre Pang <athp@users.sourceforge.net> | 2004-11-06 16:26:06 +0000 |
---|---|---|
committer | Andre Pang <athp@users.sourceforge.net> | 2004-11-06 16:26:06 +0000 |
commit | 5f9c438f2f1635ac8a3ca122791fe86a6fa8e782 (patch) | |
tree | a58482c2431da20973ba78419c37eb1af8f59c99 /src | |
parent | 87f7d4210e7ec7be98be329da469181f202a7fe6 (diff) | |
download | xine-lib-5f9c438f2f1635ac8a3ca122791fe86a6fa8e782.tar.gz xine-lib-5f9c438f2f1635ac8a3ca122791fe86a6fa8e782.tar.bz2 |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/macosx/XineOpenGLView.m | 20 |
1 files changed, 10 insertions, 10 deletions
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); |