diff --git a/hw/kdrive/fake/fake.c b/hw/kdrive/fake/fake.c index 3fed04ca4..b06e766cb 100644 --- a/hw/kdrive/fake/fake.c +++ b/hw/kdrive/fake/fake.c @@ -74,14 +74,15 @@ fakeScreenInitialize (KdScreenInfo *screen, FakeScrPriv *scrpriv) screen->height = 768; screen->rate = 72; } + + if (screen->width <= 0) + screen->width = 1; + if (screen->height <= 0) + screen->height = 1; + if (!screen->fb[0].depth) screen->fb[0].depth = 16; - t = KdFindMode (screen, fakeModeSupported); - screen->rate = t->rate; - screen->width = t->horizontal; - screen->height = t->vertical; - if (screen->fb[0].depth <= 8) { screen->fb[0].visuals = ((1 << StaticGray) |