DescriptionAdd SM_CXSIZEFRAME and SM_CXPADDEDBORDER metrics to get window border size.
Vista added the SM_CXPADDEDBORDER system metric which needs to be included
in the border size. The previous code happened to work with 32-bit Chrome
because Windows added the padding into SM_CXSIZEFRAME (and set the padding to 0)
for backwards compatibility, but with 64-bit that changed.
GetSystemMetrics(SM_CXPADDEDBORDER) should always return 0 on XP.
BUG=361720
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265329
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|