зеркало из https://github.com/mozilla/gecko-dev.git
Bug 600620 - 2/2 - Expose feature status block reason in about:support - r=jmuizelaar, a=blocking2.0-b7
This commit is contained in:
Родитель
e02aaadb50
Коммит
f2f9b2693f
|
@ -187,10 +187,29 @@ function populateGraphicsSection() {
|
|||
createHeader(bundle.GetStringFromName("driverDate")),
|
||||
createElement("td", gfxInfo.adapterDriverDate),
|
||||
]));
|
||||
|
||||
var d2dEnabled = gfxInfo.D2DEnabled;
|
||||
var d2dMessage = d2dEnabled;
|
||||
if (!d2dEnabled) {
|
||||
var d2dStatus = gfxInfo.getFeatureStatus(gfxgfxInfoInfo.FEATURE_DIRECT2D);
|
||||
if (d2dStatus == gfxInfo.FEATURE_BLOCKED_DEVICE ||
|
||||
d2dStatus == gfxInfo.FEATURE_DISCOURAGED)
|
||||
{
|
||||
d2dMessage = bundle.GetStringFromName("blockedGraphicsCard");
|
||||
}
|
||||
else if (d2dStatus == gfxInfo.FEATURE_BLOCKED_DRIVER_VERSION)
|
||||
{
|
||||
var d2dSuggestedDriverVersion = gfxInfo.getFeatureSuggestedDriverVersion(gfxInfo.FEATURE_DIRECT2D);
|
||||
if (d2dSuggestedDriverVersion) {
|
||||
d2dMessage += bundle.GetStringFromName("tryNewerDriverVersion").replace("%1", d2dSuggestedDriverVersion);
|
||||
}
|
||||
}
|
||||
}
|
||||
trGraphics.push(createParentElement("tr", [
|
||||
createHeader(bundle.GetStringFromName("direct2DEnabled")),
|
||||
createElement("td", gfxInfo.D2DEnabled),
|
||||
createElement("td", d2dMessage),
|
||||
]));
|
||||
|
||||
trGraphics.push(createParentElement("tr", [
|
||||
createHeader(bundle.GetStringFromName("directWriteEnabled")),
|
||||
createElement("td", gfxInfo.DWriteEnabled),
|
||||
|
|
|
@ -7,6 +7,13 @@
|
|||
# "GPU Accelerated Windows: 0/2"
|
||||
acceleratedWindows = GPU Accelerated Windows
|
||||
|
||||
# LOCALIZATION NOTE The verb "blocked" here refers to a graphics feature such as "Direct2D" or "OpenGL layers".
|
||||
# The %1 here is a placeholder, leave unchanged, it will get replaced by the driver version string.
|
||||
tryNewerDriverVersion = Blocked on your graphics driver. Try updating your graphics driver to version %1 or newer.
|
||||
|
||||
# LOCALIZATION NOTE The verb "blocked" here refers to a graphics feature such as "Direct2D" or "OpenGL layers".
|
||||
blockedGraphicsCard = Blocked on your graphics card because of unresolved driver issues.
|
||||
|
||||
direct2DEnabled = Direct2D Enabled
|
||||
directWriteEnabled = DirectWrite Enabled
|
||||
adapterDescription = Adapter Description
|
||||
|
|
Загрузка…
Ссылка в новой задаче