Mercurial > mplayer.hg
changeset 16584:cd14a59031b7
Several bugfixes:
black OSD border with scaled-osd
draw only used parts of image (looks weird with equalizer controls otherwise)
clear borders when switching to fullscreen when using -nodouble
author | reimar |
---|---|
date | Sun, 25 Sep 2005 14:02:02 +0000 |
parents | 84356c6d997b |
children | af59e082803a |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sun Sep 25 13:58:18 2005 +0000 +++ b/libvo/vo_gl.c Sun Sep 25 14:02:02 2005 +0000 @@ -125,6 +125,8 @@ #endif vo_osd_changed(OSDTYPE_OSD); } + if (vo_fs && use_aspect && !vo_doublebuffering) + glClear(GL_COLOR_BUFFER_BIT); } static void texSize(int w, int h, int *texw, int *texh) { @@ -434,7 +436,7 @@ #ifndef FAST_OSD glGenTextures(1, &osdatex[osdtexCnt]); BindTexture(gl_target, osdatex[osdtexCnt]); - glCreateClearTex(gl_target, GL_ALPHA, scale_type, sx, sy, 0); + glCreateClearTex(gl_target, GL_ALPHA, scale_type, sx, sy, 255); { int i; char *tmp = (char *)malloc(stride * h); @@ -489,8 +491,8 @@ glColor3f(1,1,1); if (image_format == IMGFMT_YV12) glEnableYUVConversion(gl_target, use_yuv); - glDrawTex(0, 0, texture_width, texture_height, - 0, 0, texture_width, texture_height, + glDrawTex(0, 0, image_width, image_height, + 0, 0, image_width, image_height, texture_width, texture_height, use_rectangle == 1, image_format == IMGFMT_YV12); if (image_format == IMGFMT_YV12)