diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-03-15 10:58:57 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-03-15 10:58:57 -0400 |
commit | d73e18bb70f8bf0c6fd405900dd267948dd6c3b2 (patch) | |
tree | 596c69890722b89cd88201653c4a1a1ddbd6e965 /vgasrc/vgafb.h | |
parent | 192e23b78418abc23a92a7174ae2294fabe4b8a3 (diff) | |
download | seabios-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/vgafb.h')
-rw-r--r-- | vgasrc/vgafb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vgasrc/vgafb.h b/vgasrc/vgafb.h index aae6b9b3..d5644279 100644 --- a/vgasrc/vgafb.h +++ b/vgasrc/vgafb.h @@ -3,7 +3,7 @@ // Graphics pixel operations. struct gfx_op { - struct vgamode_s *vmode_g; + struct vgamode_s *curmode_g; u32 linelength; u32 displaystart; @@ -30,7 +30,7 @@ struct carattr { // vgafb.c void memcpy_high(void *dest, void *src, u32 len); -void init_gfx_op(struct gfx_op *op, struct vgamode_s *vmode_g); +void init_gfx_op(struct gfx_op *op, struct vgamode_s *curmode_g); void handle_gfx_op(struct gfx_op *op); void *text_address(struct cursorpos cp); void vgafb_scroll(struct cursorpos win, struct cursorpos winsize |