mirror of https://github.com/mpv-player/mpv
small changes to erase only needed place (rectangles doesn't overlap)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1513 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
76eadb38e0
commit
77bab1eba2
|
@ -514,10 +514,14 @@ static void draw_osd(void)
|
|||
if (y_pos) {
|
||||
gl_fillbox(0, 0, WIDTH, y_pos, 0);
|
||||
gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
|
||||
}
|
||||
if (x_pos) {
|
||||
gl_fillbox(0, 0, x_pos, HEIGHT, 0);
|
||||
gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
|
||||
if (x_pos) {
|
||||
int hmy=HEIGHT - (y_pos<<1);
|
||||
gl_fillbox(0, y_pos, x_pos, hmy, 0);
|
||||
gl_fillbox(WIDTH - x_pos, y_pos, x_pos, hmy, 0);
|
||||
}
|
||||
} else if (x_pos) {
|
||||
gl_fillbox(0, y_pos, x_pos, HEIGHT, 0);
|
||||
gl_fillbox(WIDTH - x_pos, y_pos, x_pos, HEIGHT, 0);
|
||||
}
|
||||
|
||||
vo_draw_text(WIDTH, HEIGHT, draw_alpha);
|
||||
|
|
Loading…
Reference in New Issue