Commit 8f7ac8b5 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

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

parent d62c3f16
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment