comparison libvo/vo_svga.c @ 1512:d3364cc1f792

small changes to erase only needed place (rectangles doesn't overlap)
author atlka
date Tue, 14 Aug 2001 12:51:23 +0000
parents d40f2b686846
children 71934dc06490
comparison
equal deleted inserted replaced
1511:f29e0c2bb675 1512:d3364cc1f792
512 static void draw_osd(void) 512 static void draw_osd(void)
513 { 513 {
514 if (y_pos) { 514 if (y_pos) {
515 gl_fillbox(0, 0, WIDTH, y_pos, 0); 515 gl_fillbox(0, 0, WIDTH, y_pos, 0);
516 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0); 516 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
517 } 517 if (x_pos) {
518 if (x_pos) { 518 int hmy=HEIGHT - (y_pos<<1);
519 gl_fillbox(0, 0, x_pos, HEIGHT, 0); 519 gl_fillbox(0, y_pos, x_pos, hmy, 0);
520 gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0); 520 gl_fillbox(WIDTH - x_pos, y_pos, x_pos, hmy, 0);
521 }
522 } else if (x_pos) {
523 gl_fillbox(0, y_pos, x_pos, HEIGHT, 0);
524 gl_fillbox(WIDTH - x_pos, y_pos, x_pos, HEIGHT, 0);
521 } 525 }
522 526
523 vo_draw_text(WIDTH, HEIGHT, draw_alpha); 527 vo_draw_text(WIDTH, HEIGHT, draw_alpha);
524 } 528 }
525 529