Commit 3772c73a authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

CreateDCA -> CreateDCW

parent 043e2752
......@@ -4633,6 +4633,7 @@ TREEVIEW_MouseWheel(TREEVIEW_INFO *infoPtr, WPARAM wParam)
static LRESULT
TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
{
static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
RECT rcClient;
TREEVIEW_INFO *infoPtr;
......@@ -4736,7 +4737,7 @@ TREEVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr->himlState =
ImageList_Create(16, 16, ILC_COLOR | ILC_MASK, 3, 0);
hdcScreen = CreateDCA("DISPLAY", NULL, NULL, NULL);
hdcScreen = CreateDCW(szDisplayW, NULL, NULL, NULL);
/* Create a coloured bitmap compatible with the screen depth
because checkboxes are not black&white */
......
......@@ -2509,6 +2509,7 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
CONST METAFILEPICT *lpmfp
)
{
static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
HMETAFILE hmf = 0;
HENHMETAFILE ret = 0;
HDC hdc = 0, hdcdisp = 0;
......@@ -2528,7 +2529,7 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
}
if(!hdcRef)
hdcRef = hdcdisp = CreateDCA("DISPLAY", NULL, NULL, NULL);
hdcRef = hdcdisp = CreateDCW(szDisplayW, NULL, NULL, NULL);
if(!lpmfp) {
lpmfp = &mfp;
......
......@@ -92,12 +92,13 @@ HDC16 WINAPI WinGCreateDC16(void)
*/
BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi)
{
static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
HDC hdc;
TRACE("(%p)\n", bmpi);
if (!bmpi)
return FALSE;
hdc = CreateDCA( "DISPLAY", NULL, NULL, NULL );
hdc = CreateDCW( szDisplayW, NULL, NULL, NULL );
bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmpi->bmiHeader.biWidth = 320;
bmpi->bmiHeader.biHeight = -1;
......
......@@ -81,10 +81,13 @@ static void DCE_DumpCache(void)
*/
DCE *DCE_AllocDCE( HWND hWnd, DCE_TYPE type )
{
static const WCHAR szDisplayW[] = { 'D','I','S','P','L','A','Y','\0' };
DCE * dce;
TRACE("(%p,%d)\n", hWnd, type);
if (!(dce = HeapAlloc( GetProcessHeap(), 0, sizeof(DCE) ))) return NULL;
if (!(dce->hDC = CreateDCA( "DISPLAY", NULL, NULL, NULL )))
if (!(dce->hDC = CreateDCW( szDisplayW, NULL, NULL, NULL )))
{
HeapFree( GetProcessHeap(), 0, dce );
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