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:
parent
bab82f5621
commit
b55fe91d34
@ -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",
|
||||
|
||||
@ -87,6 +87,7 @@ struct nsFakeCharMessage;
|
||||
#define WINXP_VERSION 0x501
|
||||
#define WIN2K3_VERSION 0x502
|
||||
#define VISTA_VERSION 0x600
|
||||
#define WIN7_VERSION 0x601
|
||||
|
||||
PRInt32 GetWindowsVersion();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user