[GDITOOLS] Add info-DC to global resources

This commit is contained in:
Timo Kreuzer
2025-12-08 19:26:42 +02:00
parent 7d6a5a50fb
commit 69cb5bc1ee
2 changed files with 10 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ HDC ghdcDIB1, ghdcDIB4, ghdcDIB8, ghdcDIB16, ghdcDIB24, ghdcDIB32;
PVOID gpvDIB1, gpvDIB4, gpvDIB8, gpvDIB16, gpvDIB24, gpvDIB32;
ULONG (*gpDIB32)[8][8];
HPALETTE ghpal;
HDC ghdcInfo;
MYPAL gpal =
{
@@ -195,5 +196,13 @@ BOOL GdiToolsInit(void)
gpDIB32 = gpvDIB32;
/* Create an Info-DC */
ghdcInfo = CreateDCW(L"DISPLAY", NULL, NULL, NULL);
if (!ghdcInfo)
{
printf("failed to create info DC\n");
return FALSE;
}
return TRUE;
}

View File

@@ -5,6 +5,7 @@ extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
extern HDC ghdcDIB1, ghdcDIB4, ghdcDIB8, ghdcDIB16, ghdcDIB24, ghdcDIB32;
extern PVOID gpvDIB1, gpvDIB4, gpvDIB8, gpvDIB16, gpvDIB24, gpvDIB32;
extern HDC ghdcInfo;
extern HBITMAP ghbmpDIB32;
//extern PULONG pulDIB32Bits;