Bug 462441 - "Windows 7 default OS theme not recognized by windows-default-theme metric" [r=robarnold sr=roc a=dveditz]

git-svn-id: svn://10.0.0.236/trunk@255940 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com 2009-01-27 22:56:32 +00:00
parent bab82f5621
commit b55fe91d34
2 changed files with 2 additions and 1 deletions

View File

@ -562,7 +562,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
// users a handful of clock cycles by skipping checks for the
// 5.x themes (or vice-versa), we can use a single loop for all
// the different Windows versions.
if (hresult == S_OK && GetWindowsVersion() <= VISTA_VERSION) {
if (hresult == S_OK && GetWindowsVersion() <= WIN7_VERSION) {
LPCWSTR defThemes[] = {
L"luna.msstyles",
L"royale.msstyles",

View File

@ -87,6 +87,7 @@ struct nsFakeCharMessage;
#define WINXP_VERSION 0x501
#define WIN2K3_VERSION 0x502
#define VISTA_VERSION 0x600
#define WIN7_VERSION 0x601
PRInt32 GetWindowsVersion();