comctl32: statusbar[3/5]: change the height expression to one that seems to be the same as in Windows

Alexandre Julliard julliard at winehq.org
Thu Jul 17 05:27:11 CDT 2008


Mikołaj Zalewski <mikolaj at zalewski.pl> writes:

> @@ -116,7 +116,7 @@ STATUSBAR_ComputeHeight(STATUS_INFO *infoPtr)
>      TEXTMETRICW tm;
>      
>      COMCTL32_GetFontMetrics(infoPtr->hFont ? infoPtr->hFont : infoPtr->hDefaultFont, &tm);
> -    height = tm.tmHeight + 4 + infoPtr->verticalBorder;
> +    height = tm.tmHeight + tm.tmInternalLeading + 2 + infoPtr->verticalBorder;

This doesn't make sense, the height already includes tmInternalLeading.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list