Do not support DGA when DirectVideo not present.

This commit is contained in:
Lionel Ulmer 2000-09-09 19:40:08 +00:00 committed by Alexandre Julliard
parent 10d9909e66
commit 109066bb8e

View File

@ -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);