summaryrefslogtreecommitdiff
path: root/hw/kdrive/mga/mga.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kdrive/mga/mga.c')
-rw-r--r--hw/kdrive/mga/mga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/mga/mga.c b/hw/kdrive/mga/mga.c
index 05994dae8..2c3a4831d 100644
--- a/hw/kdrive/mga/mga.c
+++ b/hw/kdrive/mga/mga.c
@@ -74,8 +74,8 @@ mgaScreenInit (KdScreenInfo *screen)
screen->dumb = TRUE;
fprintf (stderr, "vesa mapping is %d\n", mgas->vesa.mapping);
-#endif
- mgas->screen = mgas->vesa.fb;
+#endif
+ screen->memory_base = mgas->vesa.fb;
memory = mgas->vesa.fb_size;
screen_size = screen->fb[0].byteStride * screen->height;