Move implementation of CreateDC16 to CreateDCA.
This commit is contained in:
parent
035d454d8d
commit
270bc587d8
21
objects/dc.c
21
objects/dc.c
|
@ -539,6 +539,15 @@ BOOL WINAPI RestoreDC( HDC hdc, INT level )
|
||||||
*/
|
*/
|
||||||
HDC16 WINAPI CreateDC16( LPCSTR driver, LPCSTR device, LPCSTR output,
|
HDC16 WINAPI CreateDC16( LPCSTR driver, LPCSTR device, LPCSTR output,
|
||||||
const DEVMODEA *initData )
|
const DEVMODEA *initData )
|
||||||
|
{
|
||||||
|
return CreateDCA( driver, device, output, initData );
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* CreateDCA (GDI32.@)
|
||||||
|
*/
|
||||||
|
HDC WINAPI CreateDCA( LPCSTR driver, LPCSTR device, LPCSTR output,
|
||||||
|
const DEVMODEA *initData )
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
DC * dc;
|
DC * dc;
|
||||||
|
@ -570,16 +579,6 @@ HDC16 WINAPI CreateDC16( LPCSTR driver, LPCSTR device, LPCSTR output,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* CreateDCA (GDI32.@)
|
|
||||||
*/
|
|
||||||
HDC WINAPI CreateDCA( LPCSTR driver, LPCSTR device, LPCSTR output,
|
|
||||||
const DEVMODEA *initData )
|
|
||||||
{
|
|
||||||
return CreateDC16( driver, device, output, (const DEVMODEA *)initData );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* CreateDCW (GDI32.@)
|
* CreateDCW (GDI32.@)
|
||||||
*/
|
*/
|
||||||
|
@ -589,7 +588,7 @@ HDC WINAPI CreateDCW( LPCWSTR driver, LPCWSTR device, LPCWSTR output,
|
||||||
LPSTR driverA = HEAP_strdupWtoA( GetProcessHeap(), 0, driver );
|
LPSTR driverA = HEAP_strdupWtoA( GetProcessHeap(), 0, driver );
|
||||||
LPSTR deviceA = HEAP_strdupWtoA( GetProcessHeap(), 0, device );
|
LPSTR deviceA = HEAP_strdupWtoA( GetProcessHeap(), 0, device );
|
||||||
LPSTR outputA = HEAP_strdupWtoA( GetProcessHeap(), 0, output );
|
LPSTR outputA = HEAP_strdupWtoA( GetProcessHeap(), 0, output );
|
||||||
HDC res = CreateDC16( driverA, deviceA, outputA,
|
HDC res = CreateDCA( driverA, deviceA, outputA,
|
||||||
(const DEVMODEA *)initData /*FIXME*/ );
|
(const DEVMODEA *)initData /*FIXME*/ );
|
||||||
HeapFree( GetProcessHeap(), 0, driverA );
|
HeapFree( GetProcessHeap(), 0, driverA );
|
||||||
HeapFree( GetProcessHeap(), 0, deviceA );
|
HeapFree( GetProcessHeap(), 0, deviceA );
|
||||||
|
|
Loading…
Reference in New Issue