From 109066bb8e40bdb5ab1b32e463dc4394da108b5c Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sat, 9 Sep 2000 19:40:08 +0000 Subject: [PATCH] Do not support DGA when DirectVideo not present. --- dlls/ddraw/dga.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/ddraw/dga.c b/dlls/ddraw/dga.c index d509225e0a9..4acb9bd17b1 100644 --- a/dlls/ddraw/dga.c +++ b/dlls/ddraw/dga.c @@ -126,8 +126,11 @@ DGA_Create( LPDIRECTDRAW *lplpDD ) { TRACE("XF86DGA is version %d.%d\n",major,minor); TSXF86DGAQueryDirectVideo(display,DefaultScreen(display),&flags); - if (!(flags & XF86DGADirectPresent)) + if (!(flags & XF86DGADirectPresent)) { + /* On some boards, DGA extension is present but does not support DirectVideo */ MESSAGE("direct video is NOT PRESENT.\n"); + return DDERR_GENERIC; + } TSXF86DGAGetVideo(display,DefaultScreen(display),&addr,&width,&banksize,&memsize); dgpriv->fb_width = width; TSXF86DGAGetViewPortSize(display,DefaultScreen(display),&width,&height);