mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
CreateDCA -> CreateDCW
This commit is contained in:
parent
043e27523d
commit
3772c73a6c
4 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue