aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/cbvga.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-03-15 19:50:29 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-03-15 19:50:29 -0400
commit1588fd1437960d94cadc30c42243671e8c0f1281 (patch)
tree0cf7998bd5397998f27af9291b078cde5ba3e603 /vgasrc/cbvga.c
parentd73e18bb70f8bf0c6fd405900dd267948dd6c3b2 (diff)
downloadseabios-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/cbvga.c')
-rw-r--r--vgasrc/cbvga.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c
index 9e3cc931..243e6be9 100644
--- a/vgasrc/cbvga.c
+++ b/vgasrc/cbvga.c
@@ -82,6 +82,13 @@ cbvga_set_window(struct vgamode_s *curmode_g, int window, int val)
}
int
+cbvga_minimum_linelength(struct vgamode_s *vmode_g)
+{
+ /* Can't change mode, always report active pitch. */
+ return GET_GLOBAL(CBlinelength);
+}
+
+int
cbvga_get_linelength(struct vgamode_s *curmode_g)
{
return GET_GLOBAL(CBlinelength);
@@ -156,13 +163,6 @@ cbvga_set_mode(struct vgamode_s *vmode_g, int flags)
return 0;
}
-int
-cbvga_get_linesize(struct vgamode_s *vmode_g)
-{
- /* Can't change mode, always report active pitch. */
- return GET_GLOBAL(CBlinelength);
-}
-
#define CB_TAG_FRAMEBUFFER 0x0012
struct cb_framebuffer {
u32 tag;