Use GDISelectPalette16 instead of SelectPalette and
GDIRealizePalette16 instead of RealizePalette in order to get rid of possible deadlocks.
This commit is contained in:
parent
908464d448
commit
826de2bbcc
|
@ -1009,7 +1009,7 @@ void WINAPI PlayMetaFileRecord16(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_SELECTPALETTE:
|
case META_SELECTPALETTE:
|
||||||
SelectPalette(hdc, *(ht->objectHandle + *(mr->rdParm+1)),
|
GDISelectPalette16(hdc, *(ht->objectHandle + *(mr->rdParm+1)),
|
||||||
*(mr->rdParm));
|
*(mr->rdParm));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1018,7 +1018,7 @@ void WINAPI PlayMetaFileRecord16(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_REALIZEPALETTE:
|
case META_REALIZEPALETTE:
|
||||||
RealizePalette(hdc);
|
GDIRealizePalette16(hdc);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case META_ESCAPE:
|
case META_ESCAPE:
|
||||||
|
|
Loading…
Reference in New Issue