diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-03-15 19:50:29 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-03-15 19:50:29 -0400 |
commit | 1588fd1437960d94cadc30c42243671e8c0f1281 (patch) | |
tree | 0cf7998bd5397998f27af9291b078cde5ba3e603 /vgasrc/vgahw.h | |
parent | d73e18bb70f8bf0c6fd405900dd267948dd6c3b2 (diff) | |
download | seabios-1588fd1437960d94cadc30c42243671e8c0f1281.tar.gz |
vgasrc: Rename vgahw_get_linesize() to vgahw_minimum_linelength()
Make the relationship between vgahw_get_linelength() and
vgahw_get_linesize() more clear by renaming it to
vgahw_minimum_linelength().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r-- | vgasrc/vgahw.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index bd33e208..a6ddaa95 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -95,6 +95,12 @@ static inline int vgahw_get_linelength(struct vgamode_s *curmode_g) { return stdvga_get_linelength(curmode_g); } +static inline int vgahw_minimum_linelength(struct vgamode_s *vmode_g) { + if (CONFIG_VGA_EMULATE_TEXT) + return cbvga_minimum_linelength(vmode_g); + return stdvga_minimum_linelength(vmode_g); +} + static inline int vgahw_set_linelength(struct vgamode_s *curmode_g, int val) { if (CONFIG_VGA_CIRRUS) return clext_set_linelength(curmode_g, val); @@ -151,10 +157,4 @@ static inline int vgahw_save_restore(int cmd, u16 seg, void *data) { return stdvga_save_restore(cmd, seg, data); } -static inline int vgahw_get_linesize(struct vgamode_s *vmode_g) { - if (CONFIG_VGA_EMULATE_TEXT) - return cbvga_get_linesize(vmode_g); - return stdvga_get_linesize(vmode_g); -} - #endif // vgahw.h |