diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-03-20 21:16:28 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-04-11 11:26:22 -0400 |
commit | 7fd2af64225098a7819743fbe66f413d51929a69 (patch) | |
tree | 49cab281968a013b1b3e537a5919e4e8c8d50810 /vgasrc/vgabios.h | |
parent | efbf4d69038d6d5de05b80e0fffc7759b9e022fe (diff) | |
download | seabios-7fd2af64225098a7819743fbe66f413d51929a69.tar.gz |
vgabios: Split vgafb_scroll() into separate move and clear functions.
Rewrite the low-level scroll code so that it is implemented using two
basic operations: move text and clear text. This simplifies the
low-level code as it no longer needs to handle up scrolling vs down
scrolling. Determining the direction of the scroll is now done in the
higher level (vgabios.c) code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.h')
-rw-r--r-- | vgasrc/vgabios.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vgasrc/vgabios.h b/vgasrc/vgabios.h index 69495600..de6ae59a 100644 --- a/vgasrc/vgabios.h +++ b/vgasrc/vgabios.h @@ -87,8 +87,10 @@ struct vgamode_s *get_current_mode(void); int vga_set_mode(int mode, int flags); // vgafb.c -void vgafb_scroll(int nblines, int attr - , struct cursorpos ul, struct cursorpos lr); +void vgafb_move_chars(struct vgamode_s *vmode_g, struct cursorpos dest + , struct cursorpos src, struct cursorpos movesize); +void vgafb_clear_chars(struct vgamode_s *vmode_g, struct cursorpos dest + , struct carattr ca, struct cursorpos movesize); void vgafb_write_char(struct cursorpos cp, struct carattr ca); struct carattr vgafb_read_char(struct cursorpos cp); void vgafb_write_pixel(u8 color, u16 x, u16 y); |