aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/bochsvga.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-09-10 10:41:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-09-18 20:48:33 -0400
commit68f56aa6e9d25f0e95c61dfe89b83ccc55383472 (patch)
treed3c97f0ecf25adcac800af62054083eab694bede /vgasrc/bochsvga.c
parent53663503abb7fd4cd2e847ec45a0a4594da2ae43 (diff)
downloadseabios-68f56aa6e9d25f0e95c61dfe89b83ccc55383472.tar.gz
vgabios: Rename stdvga_bpp_factor to stdvga_vram_ratio.
Invert the values returned by stdvga_bpp_factor and rename it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/bochsvga.c')
-rw-r--r--vgasrc/bochsvga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/bochsvga.c b/vgasrc/bochsvga.c
index b93213ce..fcdf7e90 100644
--- a/vgasrc/bochsvga.c
+++ b/vgasrc/bochsvga.c
@@ -412,7 +412,7 @@ bochsvga_setup(void)
u16 height = GET_GLOBAL(m->info.height);
u8 depth = GET_GLOBAL(m->info.depth);
u32 mem = (height * DIV_ROUND_UP(width * vga_bpp(&m->info), 8)
- * 4 / stdvga_bpp_factor(&m->info));
+ * stdvga_vram_ratio(&m->info));
if (width > max_xres || depth > max_bpp || mem > totalmem) {
dprintf(1, "Removing mode %x\n", GET_GLOBAL(m->mode));