Bug 1207544 - Rename DPI to DPR in schreenshot gcli. r=jryans

This commit is contained in:
Johan K. Jensen 2015-09-23 16:46:34 +02:00
parent 355678c488
commit f49e3afe8b
2 changed files with 10 additions and 10 deletions

View File

@ -67,11 +67,11 @@ const standardParams = {
manual: l10n.lookup("screenshotDelayManual")
},
{
name: "dpi",
name: "dpr",
type: { name: "number", min: 0, allowFloat: true },
defaultValue: 0,
description: l10n.lookup("screenshotDPIDesc"),
manual: l10n.lookup("screenshotDPIManual")
description: l10n.lookup("screenshotDPRDesc"),
manual: l10n.lookup("screenshotDPRManual")
},
{
name: "fullpage",
@ -293,7 +293,7 @@ function createScreenshotData(document, args) {
const canvas = document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
const ctx = canvas.getContext("2d");
const ratio = args.dpi ? args.dpi : window.devicePixelRatio;
const ratio = args.dpr ? args.dpr : window.devicePixelRatio;
canvas.width = width * ratio;
canvas.height = height * ratio;
ctx.scale(ratio, ratio);

View File

@ -96,15 +96,15 @@ screenshotDelayDesc=Delay (seconds)
# asks for help on what it does.
screenshotDelayManual=The time to wait (in seconds) before the screenshot is taken
# LOCALIZATION NOTE (screenshotDPIDesc) A very short string to describe
# the 'dpi' parameter to the 'screenshot' command, which is displayed in
# LOCALIZATION NOTE (screenshotDPRDesc) A very short string to describe
# the 'dpr' parameter to the 'screenshot' command, which is displayed in
# a dialog when the user is using this command.
screenshotDPIDesc=Dots per inch
screenshotDPRDesc=Device pixel ratio
# LOCALIZATION NOTE (screenshotDPIManual) A fuller description of the
# 'dpi' parameter to the 'screenshot' command, displayed when the user
# LOCALIZATION NOTE (screenshotDPRManual) A fuller description of the
# 'dpr' parameter to the 'screenshot' command, displayed when the user
# asks for help on what it does.
screenshotDPIManual=The number of dots per inch in the screenshot
screenshotDPRManual=The device pixel ratio to use when taking the screenshot
# LOCALIZATION NOTE (screenshotFullscreenDesc) A very short string to describe
# the 'fullscreen' parameter to the 'screenshot' command, which is displayed in