aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootsplash.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-09-03 13:52:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-09-03 13:52:50 -0400
commitc8a3d3ee0194f0bb76e7ec8eeb59d7b986c24016 (patch)
treec07b90daa80a88f25479f71bb79ba910ff20c24a /src/bootsplash.c
parentf47461f455207b7384bb828831a084bd7811f19e (diff)
downloadseabios-c8a3d3ee0194f0bb76e7ec8eeb59d7b986c24016.tar.gz
bootsplash: Don't pass mode flags to VBE get_mode_info call.
The spec doesn't specify one can pass flags into the get_mode_info call, so don't do that. Also, use the VBE_MODE_LINEAR_FRAME_BUFFER name where appropriate. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r--src/bootsplash.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c
index a85e2b2e..78023a59 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -11,7 +11,8 @@
#include "util.h" // dprintf
#include "jpeg.h" // splash
#include "vbe.h" // struct vbe_info
-#include "bmp.h"
+#include "bmp.h" // bmp_alloc
+
/****************************************************************
* Helper functions
@@ -63,7 +64,7 @@ find_videomode(struct vbe_info *vesa_info, struct vbe_mode_info *mode_info
struct bregs br;
memset(&br, 0, sizeof(br));
br.ax = 0x4f01;
- br.cx = (1 << 14) | videomode;
+ br.cx = videomode;
br.di = FLATPTR_TO_OFFSET(mode_info);
br.es = FLATPTR_TO_SEG(mode_info);
call16_int10(&br);
@@ -216,7 +217,7 @@ enable_bootsplash(void)
dprintf(5, "Switching to graphics mode\n");
memset(&br, 0, sizeof(br));
br.ax = 0x4f02;
- br.bx = (1 << 14) | videomode;
+ br.bx = videomode | VBE_MODE_LINEAR_FRAME_BUFFER;
call16_int10(&br);
if (br.ax != 0x4f) {
dprintf(1, "set_mode failed.\n");