Skip to content

Commit

Permalink
Fix clear to end of screen for VESA
Browse files Browse the repository at this point in the history
  • Loading branch information
chasonr committed Mar 4, 2016
1 parent c345c91 commit f169e01
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sys/msdos/vidvesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,17 @@ void
vesa_cl_eos(cy)
int cy;
{
unsigned left = vesa_x_center;
unsigned top = vesa_y_center + cy * 16;
unsigned width = 640;
unsigned height = (LI - 2 - cy) * 16;

int count;

cl_end();
vesa_FillRect(left, top, width, height, BACKGROUND_VESA_COLOR);
if (cy < LI - 1) {
unsigned left = vesa_x_center;
unsigned top = vesa_y_center + cy * 16;
unsigned width = 640;
unsigned height = (LI - 1 - cy) * 16;

vesa_FillRect(left, top, width, height, BACKGROUND_VESA_COLOR);
}
}

void
Expand Down

0 comments on commit f169e01

Please sign in to comment.