Skip to content

Commit

Permalink
Remove some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkjnsdvsodvnosdvm authored Feb 18, 2023
1 parent 5af2cc3 commit 98ed851
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WinCenterTitleLibrary/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ int64_t CTextValidateResourcesHookW10(
// label based on a check of whether the label size exceeded the window
// size; so, by setting the label size to a very large value, DWM is
// tricked into thinking the overflow is always happening
val = ((DWORD*)g_CTextInstance + 102);
val = ((DWORD*)g_CTextInstance + 100);
if (*val < ENTIRE_TITLEBAR)
{
*val += ENTIRE_TITLEBAR;
Expand Down Expand Up @@ -547,20 +547,20 @@ int64_t CMatrixTransformProxyUpdateHook(
if (g_CTextInstance)
{
// this is the width of the title bar label containing the text
double v1 = *((DWORD*)g_CTextInstance + 102);
double v1 = *((DWORD*)g_CTextInstance + 100);
// this is the size available for the label (the size between the
// window icon, or the left window margin, and the caption buttons, or the
// right window margin)
double v3 = *((DWORD*)g_CTextInstance + 32);
double v3 = *((DWORD*)g_CTextInstance + 30);
// this is the height of the titlebar text (UNUSED)
double v4 = *((DWORD*)g_CTextInstance + 33);
double v4 = *((DWORD*)g_CTextInstance + 31);
// the following have been found out by analyzing the function
// UpdateNCAreaPositionsAndSizes
// this is the width of the window icon
double v6 = *((DWORD*)g_CTextInstance + 34);
double v6 = *((DWORD*)g_CTextInstance + 32);
// this is the width of the window caption buttons (for example,
// Close, Minimize, Maximize etc)
double v5 = *((DWORD*)g_CTextInstance + 35);
double v5 = *((DWORD*)g_CTextInstance + 33);
// this also contains the width and height:
// tagSIZE st = *((tagSIZE*)g_CTextInstance + 15);
// where tagSIZE is a struct of 2 LONGs (width, and height)
Expand Down

0 comments on commit 98ed851

Please sign in to comment.