mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1219925 - Fix for format specifiers in getCleartypeParameters. r=jfkthame
This commit is contained in:
parent
5e0adb7d56
commit
acd669ac3f
@ -84,7 +84,7 @@ GfxInfo::GetCleartypeParameters(nsAString & aCleartypeParams)
|
||||
ClearTypeParameterInfo& params = clearTypeParams[d];
|
||||
|
||||
if (displayNames) {
|
||||
outStr.AppendPrintf("%s [ ", params.displayName.get());
|
||||
outStr.AppendPrintf("%S [ ", params.displayName.get());
|
||||
}
|
||||
|
||||
if (params.gamma >= 0) {
|
||||
@ -97,9 +97,9 @@ GfxInfo::GetCleartypeParameters(nsAString & aCleartypeParams)
|
||||
if (params.pixelStructure == PIXEL_STRUCT_RGB ||
|
||||
params.pixelStructure == PIXEL_STRUCT_BGR)
|
||||
{
|
||||
outStr.AppendPrintf("Pixel Structure: %s ",
|
||||
(params.pixelStructure == PIXEL_STRUCT_RGB ?
|
||||
L"RGB" : L"BGR"));
|
||||
outStr.AppendPrintf("Pixel Structure: %S ",
|
||||
(params.pixelStructure == PIXEL_STRUCT_RGB
|
||||
? MOZ_UTF16("RGB") : MOZ_UTF16("BGR")));
|
||||
} else {
|
||||
outStr.AppendPrintf("Pixel Structure: %d ", params.pixelStructure);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user