aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/clext.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-12-31 19:13:45 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-12-31 19:21:23 -0500
commit5108c69c47e18244206593c0c7918711311d8ef3 (patch)
tree1a64a1ac0ab43a3acfe89ed8a55e2c895f25ee5b /vgasrc/clext.c
parent6f775088925a9b1ed3ded58e05d7ee276366166f (diff)
downloadseabios-5108c69c47e18244206593c0c7918711311d8ef3.tar.gz
vgabios: Unify X_set_mode() functions.
Use the same function signature for cirrus, bochsvga, and stdvga set_mode code. Make both the int1000 interface and the VBE 104f02 interface use the same set_mode function. Where clext and bochsvga need to fallback to the standard vga mode switching, have them call vgastd_mode_switch directly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/clext.c')
-rw-r--r--vgasrc/clext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c
index 70717497..f468002c 100644
--- a/vgasrc/clext.c
+++ b/vgasrc/clext.c
@@ -393,22 +393,22 @@ cirrus_clear_vram(u16 param)
}
int
-clext_set_video_mode(u8 mode, u8 noclearmem)
+clext_set_mode(int mode, int flags)
{
dprintf(1, "cirrus mode %d\n", mode);
SET_BDA(vbe_mode, 0);
struct cirrus_mode_s *table_g = cirrus_get_modeentry(mode);
if (table_g) {
cirrus_switch_mode(table_g);
- if (!noclearmem)
+ if (!(flags & MF_NOCLEARMEM))
cirrus_clear_vram(0xffff);
SET_BDA(video_mode, mode);
- return 1;
+ return 0;
}
table_g = cirrus_get_modeentry(0xfe);
cirrus_switch_mode(table_g);
dprintf(1, "cirrus mode switch regular\n");
- return 0;
+ return stdvga_set_mode(mode, flags);
}
static int