Bug 1219925 - Fix for format specifiers in getCleartypeParameters. r=jfkthame

This commit is contained in:
rhunt 2016-06-09 09:48:00 +02:00
parent 5e0adb7d56
commit acd669ac3f

View File

@ -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);
}