aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/vgautil.h
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-05-29 19:25:12 +0200
committerKevin O'Connor <kevin@koconnor.net>2017-06-12 15:17:09 -0400
commit4902b8a703779ee2d85da406d6f1dc16df71a43d (patch)
tree9d78ef245ac730a3b2a1bd5e70f0d1ef1ec1db2e /vgasrc/vgautil.h
parent4b42cc4b31f682214ab473838f0de0584f58cba8 (diff)
downloadseabios-4902b8a703779ee2d85da406d6f1dc16df71a43d.zip
seabios-4902b8a703779ee2d85da406d6f1dc16df71a43d.tar.gz
seabios-4902b8a703779ee2d85da406d6f1dc16df71a43d.tar.bz2
SeaVGABIOS/vbe: Query driver for scanline pitch v2
Query the driver for the real scanline pitch in bytes. As cbvga doesn't change the pitch on mode change, always return the same pitch, that might exceed width times Bytes-per-pixel. Report the default stdvga pitch for all other drivers. Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'vgasrc/vgautil.h')
-rw-r--r--vgasrc/vgautil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vgasrc/vgautil.h b/vgasrc/vgautil.h
index 08c4e8d..fae5fba 100644
--- a/vgasrc/vgautil.h
+++ b/vgasrc/vgautil.h
@@ -17,6 +17,7 @@ int cbvga_get_dacformat(struct vgamode_s *vmode_g);
int cbvga_set_dacformat(struct vgamode_s *vmode_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);
int cbvga_setup(void);
// clext.c
@@ -63,6 +64,7 @@ void stdvga_list_modes(u16 seg, u16 *dest, u16 *last);
void stdvga_build_video_param(void);
void stdvga_override_crtc(int mode, u8 *crtc);
int stdvga_set_mode(struct vgamode_s *vmode_g, int flags);
+int stdvga_get_linesize(struct vgamode_s *vmode_g);
void stdvga_set_packed_palette(void);
// swcursor.c