diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-07-15 10:54:51 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-07-21 10:51:32 -0400 |
commit | 09e24ac187d586c6a287927afffefe4da319fd3e (patch) | |
tree | a14b9f9b3d2675b164ab47c41a5c2f660a11de27 /vgasrc/vgabios.h | |
parent | ae3f78f3fa1a4c32600132df2f78fa31b6d775f1 (diff) | |
download | seabios-hppa-09e24ac187d586c6a287927afffefe4da319fd3e.zip seabios-hppa-09e24ac187d586c6a287927afffefe4da319fd3e.tar.gz seabios-hppa-09e24ac187d586c6a287927afffefe4da319fd3e.tar.bz2 |
vgabios: Simplify scroll logic
Introduce a new function vgafb_scroll() to scroll a window on the
screen and update vgabios.c to use only that function for scrolling.
This makes the low-level vgafb_move_chars() and vgafb_clear_chars()
local to vgafb.c, and it simplifies the callers.
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, 2 insertions, 4 deletions
diff --git a/vgasrc/vgabios.h b/vgasrc/vgabios.h index 831f694..9fbfb14 100644 --- a/vgasrc/vgabios.h +++ b/vgasrc/vgabios.h @@ -126,10 +126,8 @@ extern struct video_func_static static_functionality; void init_gfx_op(struct gfx_op *op, struct vgamode_s *vmode_g); void handle_gfx_op(struct gfx_op *op); void *text_address(struct cursorpos cp); -void vgafb_move_chars(struct cursorpos dest - , struct cursorpos src, struct cursorpos movesize); -void vgafb_clear_chars(struct cursorpos dest - , struct carattr ca, struct cursorpos movesize); +void vgafb_scroll(struct cursorpos win, struct cursorpos winsize + , int lines, struct carattr ca); 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); |