aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgautil.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-03-15 10:58:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-03-15 10:58:57 -0400
commitd73e18bb70f8bf0c6fd405900dd267948dd6c3b2 (patch)
tree596c69890722b89cd88201653c4a1a1ddbd6e965 /vgasrc/vgautil.h
parent192e23b78418abc23a92a7174ae2294fabe4b8a3 (diff)
downloadseabios-d73e18bb70f8bf0c6fd405900dd267948dd6c3b2.tar.gz
vgasrc: Use curmode_g instead of vmode_g when mode is the current video mode
Many functions are passed a pointer to the current video mode vgamode_s struct. Use the name 'curmode_g' for these functions and use 'vmode_g' for functions that can accept an arbitrary video mode. Hopefully this will make the goals of the functions more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgautil.h')
-rw-r--r--vgasrc/vgautil.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/vgasrc/vgautil.h b/vgasrc/vgautil.h
index dd1aa189..245a562f 100644
--- a/vgasrc/vgautil.h
+++ b/vgasrc/vgautil.h
@@ -7,14 +7,14 @@
// cbvga.c
struct vgamode_s *cbvga_find_mode(int mode);
void cbvga_list_modes(u16 seg, u16 *dest, u16 *last);
-int cbvga_get_window(struct vgamode_s *vmode_g, int window);
-int cbvga_set_window(struct vgamode_s *vmode_g, int window, int val);
-int cbvga_get_linelength(struct vgamode_s *vmode_g);
-int cbvga_set_linelength(struct vgamode_s *vmode_g, int val);
-int cbvga_get_displaystart(struct vgamode_s *vmode_g);
-int cbvga_set_displaystart(struct vgamode_s *vmode_g, int val);
-int cbvga_get_dacformat(struct vgamode_s *vmode_g);
-int cbvga_set_dacformat(struct vgamode_s *vmode_g, int val);
+int cbvga_get_window(struct vgamode_s *curmode_g, int window);
+int cbvga_set_window(struct vgamode_s *curmode_g, int window, int val);
+int cbvga_get_linelength(struct vgamode_s *curmode_g);
+int cbvga_set_linelength(struct vgamode_s *curmode_g, int val);
+int cbvga_get_displaystart(struct vgamode_s *curmode_g);
+int cbvga_set_displaystart(struct vgamode_s *curmode_g, int val);
+int cbvga_get_dacformat(struct vgamode_s *curmode_g);
+int cbvga_set_dacformat(struct vgamode_s *curmode_g, int val);
int cbvga_save_restore(int cmd, u16 seg, void *data);
int cbvga_set_mode(struct vgamode_s *vmode_g, int flags);
int cbvga_get_linesize(struct vgamode_s *vmode_g);
@@ -30,12 +30,12 @@ int ramfb_setup(void);
// clext.c
struct vgamode_s *clext_find_mode(int mode);
void clext_list_modes(u16 seg, u16 *dest, u16 *last);
-int clext_get_window(struct vgamode_s *vmode_g, int window);
-int clext_set_window(struct vgamode_s *vmode_g, int window, int val);
-int clext_get_linelength(struct vgamode_s *vmode_g);
-int clext_set_linelength(struct vgamode_s *vmode_g, int val);
-int clext_get_displaystart(struct vgamode_s *vmode_g);
-int clext_set_displaystart(struct vgamode_s *vmode_g, int val);
+int clext_get_window(struct vgamode_s *curmode_g, int window);
+int clext_set_window(struct vgamode_s *curmode_g, int window, int val);
+int clext_get_linelength(struct vgamode_s *curmode_g);
+int clext_set_linelength(struct vgamode_s *curmode_g, int val);
+int clext_get_displaystart(struct vgamode_s *curmode_g);
+int clext_set_displaystart(struct vgamode_s *curmode_g, int val);
int clext_save_restore(int cmd, u16 seg, void *data);
int clext_set_mode(struct vgamode_s *vmode_g, int flags);
struct bregs;