]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
SeaVGABios/cbvga: Use active mode to clear screen
authorPatrick Rudolph <siro@das-labor.org>
Mon, 29 May 2017 17:25:13 +0000 (19:25 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 12 Jun 2017 19:17:10 +0000 (15:17 -0400)
As coreboot framebuffer is immutable always use CBmodeinfo.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
vgasrc/cbvga.c

index 417ade3af90df0c5d13f478cc48d02ea71c11f03..4b7cd0ef95c1abfbdced5d10eea5ece947b97c50 100644 (file)
@@ -105,7 +105,7 @@ cbvga_set_mode(struct vgamode_s *vmode_g, int flags)
             return 0;
         }
         struct gfx_op op;
-        init_gfx_op(&op, vmode_g);
+        init_gfx_op(&op, &CBmodeinfo);
         op.x = op.y = 0;
         op.xlen = GET_GLOBAL(CBmodeinfo.width);
         op.ylen = GET_GLOBAL(CBmodeinfo.height);