aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgabios.c
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/vgabios.c
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/vgabios.c')
-rw-r--r--vgasrc/vgabios.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c
index 73ba1c3d..2ca8c3dd 100644
--- a/vgasrc/vgabios.c
+++ b/vgasrc/vgabios.c
@@ -114,14 +114,14 @@ set_active_page(u8 page)
return;
// Get the mode
- struct vgamode_s *vmode_g = get_current_mode();
- if (!vmode_g)
+ struct vgamode_s *curmode_g = get_current_mode();
+ if (!curmode_g)
return;
// Calculate memory address of start of page
struct cursorpos cp = {0, 0, page};
int address = (int)text_address(cp);
- vgahw_set_displaystart(vmode_g, address);
+ vgahw_set_displaystart(curmode_g, address);
// And change the BIOS page
SET_BDA(video_pagestart, address);