diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-04-01 11:08:14 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-04-05 17:59:45 -0400 |
commit | 549463dbc055b4a0abcf2548621ae18c23934465 (patch) | |
tree | 67b4234adad0c969fe90e7966c2cb62f010f3a53 | |
parent | c67914ac42374e61469de45a1bba5e163c1d2dee (diff) | |
download | seabios-549463dbc055b4a0abcf2548621ae18c23934465.tar.gz |
stdvga: Rename stdvga_set_scan_lines() to stdvga_set_character_height()
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | vgasrc/stdvga.c | 2 | ||||
-rw-r--r-- | vgasrc/stdvga.h | 2 | ||||
-rw-r--r-- | vgasrc/vgabios.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c index ed88edc8..a5972baa 100644 --- a/vgasrc/stdvga.c +++ b/vgasrc/stdvga.c @@ -270,7 +270,7 @@ stdvga_set_cursor_pos(int address) // Set the character height (when in text mode) void -stdvga_set_scan_lines(u8 lines) +stdvga_set_character_height(u8 lines) { stdvga_crtc_mask(stdvga_get_crtc(), 0x09, 0x1f, lines - 1); } diff --git a/vgasrc/stdvga.h b/vgasrc/stdvga.h index 87604869..439930a3 100644 --- a/vgasrc/stdvga.h +++ b/vgasrc/stdvga.h @@ -65,7 +65,7 @@ struct vgamode_s; int stdvga_vram_ratio(struct vgamode_s *vmode_g); void stdvga_set_cursor_shape(u16 cursor_type); void stdvga_set_cursor_pos(int address); -void stdvga_set_scan_lines(u8 lines); +void stdvga_set_character_height(u8 lines); u16 stdvga_get_vde(void); int stdvga_get_window(struct vgamode_s *curmode_g, int window); int stdvga_set_window(struct vgamode_s *curmode_g, int window, int val); diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index 22c02612..a68cae1f 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -134,9 +134,9 @@ set_active_page(u8 page) } static void -set_scan_lines(u8 lines) +set_character_height(u8 lines) { - stdvga_set_scan_lines(lines); + stdvga_set_character_height(lines); SET_BDA(char_height, lines); u16 vde = stdvga_get_vde(); u8 rows = vde / lines; @@ -700,28 +700,28 @@ handle_101110(struct bregs *regs) { stdvga_load_font(regs->es, (void*)(regs->bp+0), regs->cx , regs->dx, regs->bl, regs->bh); - set_scan_lines(regs->bh); + set_character_height(regs->bh); } static void handle_101111(struct bregs *regs) { stdvga_load_font(get_global_seg(), vgafont14, 0x100, 0, regs->bl, 14); - set_scan_lines(14); + set_character_height(14); } static void handle_101112(struct bregs *regs) { stdvga_load_font(get_global_seg(), vgafont8, 0x100, 0, regs->bl, 8); - set_scan_lines(8); + set_character_height(8); } static void handle_101114(struct bregs *regs) { stdvga_load_font(get_global_seg(), vgafont16, 0x100, 0, regs->bl, 16); - set_scan_lines(16); + set_character_height(16); } static void |