From 35bd81dfec62402f9d6c68d98e651e8cd87a8758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Fri, 11 Feb 2005 19:38:04 +0000 Subject: [PATCH] =?UTF-8?q?Fri=20Feb=2011=2014:28:22=202005=20S=C3=B8ren?= =?UTF-8?q?=20Sandmann=20=20When=20COMPOSITE=20is=20e?= =?UTF-8?q?nabled,=20call=20CopyWindow=20even=20when=20the=20pixels=20"don?= =?UTF-8?q?'t=20=20=20=20=20move"=20on=20screen.=20Don't=20reject=20modes?= =?UTF-8?q?=20that=20are=20not=20supported=20by=20the=20unused=20monitor.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw/kdrive/fake/fake.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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) |