Ivan Sinitsin wrote:
This patch adds an opportunity for fonts of the menu, statusbar and messages to increase depending on logpixels.
+size=sizeof(DWORD); +RegOpenKeyExW( HKEY_LOCAL_MACHINE, registry_key,
0, KEY_QUERY_VALUE, &myhKey );
+if (!RegQueryValueExW( myhKey, log_pixels, NULL, &type,
(LPBYTE) &logpixels, &size )==ERROR_SUCCESS)
logpixels=72;
+ncm.lfMenuFont.lfHeight=-MulDiv(ncm.lfMenuFont.lfHeight,logpixels,72); +RegCloseKey( myhKey );
You're missing some indentation here.