diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 14:02:02 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-09-25 14:02:02 +0000 |
commit | b0080205366a0fb6141c174a0b5f7fa5a917d1f7 (patch) | |
tree | 7b8ecedccfa209f3110b1fd0c79aa9a7bbd6ed03 | |
parent | 2abdf6ac43192f9089466c50ad0639539bc2a18d (diff) |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16585 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 81a8426e89..7c3e26092b 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -125,6 +125,8 @@ static void resize(int x,int y){ #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 @@ static void create_osd_texture(int x0, int y0, int w, int h, #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 @@ flip_page(void) 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) |