valinet / WinCenterTitle

WinCenterTitle is a simple tool that allows you to center align the text in Windows 10 titlebars, the same way it was in Windows 8, 8.1, or even 3.1.
GNU General Public License v2.0
153 stars 16 forks source link

Title's text becomes blurry #2

Closed shinywong closed 3 years ago

shinywong commented 3 years ago

Title's text becomes blurry after applying WinCenterTitle. You will notice it if the Title's text is long enough.

Before:

Before

After:

After

The center of the text is NOT blurry. The farther from the center, the text becomes more blurry.

valinet commented 3 years ago

I think this may happen due to line 36: lprc->right -= 2; in the source code (dllmain.cpp). Try commenting that out, recompile and check if it helps. That is there so it fixes another problem, that the title rectangle sometimes overlaps the window ever so slightly, but maybe this is not an appropriate fix after all and we should look into coming up with another solution.

valinet commented 3 years ago

New version employs different (and more proper) method of centering the text, so DrawTextW is not hooked anymore, so this should not happen anymore; thus, I am closing this issue as the problem has been fixed indirectly.