summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_svga.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c
index 7f7929261e..66968a09e9 100644
--- a/libvo/vo_svga.c
+++ b/libvo/vo_svga.c
@@ -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);