Implemented the ddraw HAL access escape (DCICOMMAND) in x11drv.

This commit is contained in:
Ove Kaaven 2001-04-17 17:29:59 +00:00 committed by Alexandre Julliard
parent d62c3f16ac
commit 8f7ac8b5cd
1 changed files with 23 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include "debugtools.h"
#include "winnt.h"
#include "x11drv.h"
#include "ddrawi.h"
DEFAULT_DEBUG_CHANNEL(x11drv);
@ -321,6 +322,18 @@ static INT X11DRV_Escape( DC *dc, INT nEscape, INT cbInput,
{
switch( nEscape )
{
case QUERYESCSUPPORT:
if( lpInData )
{
LPINT16 lpEscape = MapSL(lpInData);
switch (*lpEscape)
{
case DCICOMMAND:
return DD_HAL_VERSION;
}
}
break;
case GETSCALINGFACTOR:
if( lpOutData )
{
@ -329,7 +342,16 @@ static INT X11DRV_Escape( DC *dc, INT nEscape, INT cbInput,
return 1;
}
break;
case DCICOMMAND:
if( lpInData )
{
LPDCICMD lpCmd = MapSL(lpInData);
if (lpCmd->dwVersion != DD_VERSION) break;
return X11DRV_DCICommand(cbInput, lpCmd, MapSL(lpOutData));
}
break;
}
return 0;
}