- Fix MS VC compilation. Spotted by Michael Martin
- Remove unused definition

svn path=/trunk/; revision=52913
This commit is contained in:
Rafal Harabien 2011-07-27 01:00:47 +00:00
parent 32ed1e22ae
commit ab7897e9d6
2 changed files with 3 additions and 4 deletions

View file

@ -120,8 +120,8 @@ VOID LoadCurrentTheme(THEME* theme)
/* FIXME: XP seems to use grayed checkboxes to reflect differences between menu and tooltips settings
* Just keep them in sync for now:
*/
theme->Effects.bTooltipAnimation = theme->Effects.bMenuAnimation;
theme->Effects.bTooltipFade = theme->Effects.bMenuFade;
theme->Effects.bTooltipAnimation = theme->Effects.bMenuAnimation;
theme->Effects.bTooltipFade = theme->Effects.bMenuFade;
/* show content of windows during dragging */
SystemParametersInfo(SPI_GETDRAGFULLWINDOWS, 0, &theme->Effects.bDragFullWindows, 0);
@ -138,6 +138,7 @@ BOOL LoadThemeFromReg(THEME* theme, INT ThemeId)
TCHAR strValueName[10];
HKEY hkNewSchemes, hkScheme, hkSize;
DWORD dwType, dwLength;
UINT64 iSize;
BOOL Ret = FALSE;
if (!g_PresetLoaded)
@ -190,7 +191,6 @@ BOOL LoadThemeFromReg(THEME* theme, INT ThemeId)
for (i = 0; i < NUM_SIZES; i++)
{
wsprintf(strValueName, TEXT("Size #%d"), i);
UINT64 iSize;
dwLength = sizeof(UINT64);
if (RegQueryValueEx(hkSize, strValueName, NULL, &dwType, (LPBYTE)&iSize, &dwLength) != ERROR_SUCCESS ||
dwType != REG_QWORD || dwLength != sizeof(UINT64))

View file

@ -33,7 +33,6 @@
#define NUM_SIZES 20
#define NUM_COLORS 31
#define MAX_TEMPLATES 50
#define MAX_COLORNAMELENGTH 30
#define MAX_TEMPLATENAMELENTGH 80
/* Some typedefs for theme */