Skip to content

Commit 69cb5bc

Browse files
committed
[GDITOOLS] Add info-DC to global resources
1 parent 7d6a5a5 commit 69cb5bc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

modules/rostests/apitests/gditools/gditools.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ HDC ghdcDIB1, ghdcDIB4, ghdcDIB8, ghdcDIB16, ghdcDIB24, ghdcDIB32;
2424
PVOID gpvDIB1, gpvDIB4, gpvDIB8, gpvDIB16, gpvDIB24, gpvDIB32;
2525
ULONG (*gpDIB32)[8][8];
2626
HPALETTE ghpal;
27+
HDC ghdcInfo;
2728

2829
MYPAL gpal =
2930
{
@@ -195,5 +196,13 @@ BOOL GdiToolsInit(void)
195196

196197
gpDIB32 = gpvDIB32;
197198

199+
/* Create an Info-DC */
200+
ghdcInfo = CreateDCW(L"DISPLAY", NULL, NULL, NULL);
201+
if (!ghdcInfo)
202+
{
203+
printf("failed to create info DC\n");
204+
return FALSE;
205+
}
206+
198207
return TRUE;
199208
}

modules/rostests/apitests/gditools/gditools.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
55
extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
66
extern HDC ghdcDIB1, ghdcDIB4, ghdcDIB8, ghdcDIB16, ghdcDIB24, ghdcDIB32;
77
extern PVOID gpvDIB1, gpvDIB4, gpvDIB8, gpvDIB16, gpvDIB24, gpvDIB32;
8+
extern HDC ghdcInfo;
89

910
extern HBITMAP ghbmpDIB32;
1011
//extern PULONG pulDIB32Bits;

0 commit comments

Comments
 (0)