aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgahw.h
diff options
context:
space:
mode:
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r--vgasrc/vgahw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h
index dab2b4dd..2a85eba8 100644
--- a/vgasrc/vgahw.h
+++ b/vgasrc/vgahw.h
@@ -139,4 +139,10 @@ static inline int vgahw_save_restore(int cmd, u16 seg, void *data) {
return stdvga_save_restore(cmd, seg, data);
}
+static inline int vgahw_get_linesize(struct vgamode_s *vmode_g) {
+ if (CONFIG_VGA_COREBOOT)
+ return cbvga_get_linesize(vmode_g);
+ return stdvga_get_linesize(vmode_g);
+}
+
#endif // vgahw.h