Bug 662324 - Add "Fill" and "Fit" position support for "Set As Desktop Background...". r=gavin

This commit is contained in:
Ian Moody
2012-02-01 11:37:55 +01:00
parent 7f4d216364
commit ea770ea377
7 changed files with 64 additions and 1 deletions

View File

@@ -640,6 +640,14 @@ nsWindowsShellService::SetDesktopBackground(nsIDOMElement* aElement,
style.AssignLiteral("2");
tile.AssignLiteral("0");
break;
case BACKGROUND_FILL:
style.AssignLiteral("10");
tile.AssignLiteral("0");
break;
case BACKGROUND_FIT:
style.AssignLiteral("6");
tile.AssignLiteral("0");
break;
}
rv = regKey->WriteStringValue(NS_LITERAL_STRING("TileWallpaper"), tile);