Skip to content

Commit 366ea3c

Browse files
committed
Hakcs
1 parent b5d6931 commit 366ea3c

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

win32ss/gdi/ntgdi/init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ GdiProcessDestroy(PEPROCESS Process)
5050
ASSERT(ppiCurrent);
5151
ASSERT(ppiCurrent->peProcess == Process);
5252

53-
IntGdiCleanupPrivateFontsForProcess();
53+
//IntGdiCleanupPrivateFontsForProcess();
54+
__debugbreak();
5455

5556
/* And GDI ones too */
5657
GDI_CleanupForProcess(Process);

win32ss/gdi/ntgdi/path.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,10 +2290,10 @@ PATH_ExtTextOut(
22902290

22912291
for (idx = 0; idx < count; idx++)
22922292
{
2293-
MAT2 identity = { {0, 1}, {0, 0}, {0, 0}, {0, 1} };
2293+
//MAT2 identity = { {0, 1}, {0, 0}, {0, 0}, {0, 1} };
22942294
GLYPHMETRICS gm = {0};
22952295
DWORD dwSize;
2296-
void *outline;
2296+
//void *outline;
22972297

22982298
__debugbreak();
22992299
#if 0

win32ss/user/ntuser/display.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,9 @@ UserChangeDisplaySettings(
826826
else
827827
gpsi->PUSIFlags &= ~PUSIF_PALETTEDISPLAY;
828828
// Font is realized and this dc was previously set to internal DC_ATTR.
829-
gpsi->cxSysFontChar = IntGetCharDimensions(hSystemBM, &tmw, (DWORD*)&gpsi->cySysFontChar);
829+
//gpsi->cxSysFontChar = IntGetCharDimensions(hSystemBM, &tmw, (DWORD*)&gpsi->cySysFontChar);
830+
__debugbreak();
831+
RtlZeroMemory(&tmw, sizeof(tmw));
830832
gpsi->tmSysFont = tmw;
831833

832834
/* Remove all cursor clipping */

win32ss/user/ntuser/menu.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,9 @@ IntGetDialogBaseUnits(VOID)
17831783

17841784
if ((hdc = UserGetDCEx(NULL, NULL, DCX_CACHE)))
17851785
{
1786-
size.cx = IntGetCharDimensions( hdc, NULL, (PDWORD)&size.cy );
1786+
//size.cx = IntGetCharDimensions( hdc, NULL, (PDWORD)&size.cy );
1787+
__debugbreak();
1788+
size.cx = size.cy = 0;
17871789
if (size.cx) units = MAKELONG( size.cx, size.cy );
17881790
UserReleaseDC( 0, hdc, FALSE);
17891791
}
@@ -1810,7 +1812,8 @@ static void FASTCALL MENU_CalcItemSize( HDC hdc, PITEM lpitem, PMENU Menu, PWND
18101812

18111813
arrow_bitmap_width = gpsi->oembmi[OBI_MNARROW].cx;
18121814

1813-
MenuCharSize.cx = IntGetCharDimensions( hdc, NULL, (PDWORD)&MenuCharSize.cy );
1815+
//MenuCharSize.cx = IntGetCharDimensions( hdc, NULL, (PDWORD)&MenuCharSize.cy );
1816+
__debugbreak();
18141817

18151818
RECTL_vSetRect( &Rect, orgX, orgY, orgX, orgY );
18161819

win32ss/user/ntuser/winsta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ co_IntInitializeDesktopGraphics(VOID)
280280
else
281281
gpsi->PUSIFlags &= ~PUSIF_PALETTEDISPLAY;
282282
// Font is realized and this dc was previously set to internal DC_ATTR.
283-
DPRINT1("HACK HACK HACK HACK HACK HACK HACK HACK HACK \n");
283+
ERR("HACK HACK HACK HACK HACK HACK HACK HACK HACK \n");
284284
#if 0
285285
gpsi->cxSysFontChar = IntGetCharDimensions(hSystemBM, &tmw, (DWORD*)&gpsi->cySysFontChar);
286286
gpsi->tmSysFont = tmw;

0 commit comments

Comments
 (0)