comparison libvo/vo_svga.c @ 989:1be1647ebd7d

flip_page gl_fillbox fix.
author se7encode
date Mon, 04 Jun 2001 11:27:42 +0000
parents 90408bd383a5
children bf2c01c5e9dc
comparison
equal deleted inserted replaced
988:c6f88600d409 989:1be1647ebd7d
509 509
510 static void flip_page(void) { 510 static void flip_page(void) {
511 if (y_pos) { 511 if (y_pos) {
512 gl_fillbox(0, 0, WIDTH, y_pos, 0); 512 gl_fillbox(0, 0, WIDTH, y_pos, 0);
513 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0); 513 gl_fillbox(0, HEIGHT - y_pos, WIDTH, y_pos, 0);
514 } else { 514 }
515 gl_fillbox(0, 0, x_pos, HEIGHT, 0); 515 if (x_pos) {
516 gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0); 516 gl_fillbox(0, 0, x_pos, HEIGHT, 0);
517 } 517 gl_fillbox(WIDTH - x_pos, 0, x_pos, HEIGHT, 0);
518 }
519
518 vo_draw_text(WIDTH, HEIGHT, draw_alpha); 520 vo_draw_text(WIDTH, HEIGHT, draw_alpha);
519 gl_copyscreen(screen); 521 gl_copyscreen(screen);
520 } 522 }
521 523
522 static void check_events(void) { 524 static void check_events(void) {