vgabios: Use vgamode_s in cirrus and bochsvga mode tables.
[seabios.git] / vgasrc / vgahw.h
index 55e3bc4cac9d5bf9078c28b5987e09652d6d7400..9d8a06793f42e79512737193f1a259e622ec4a52 100644 (file)
 #include "geodevga.h" // geodevga_init
 
 static inline struct vgamode_s *vgahw_find_mode(int mode) {
+    if (CONFIG_VGA_CIRRUS)
+        return clext_find_mode(mode);
+    if (CONFIG_VGA_BOCHS)
+        return bochsvga_find_mode(mode);
     return stdvga_find_mode(mode);
 }