UNPKG

gpii-windows

Version:

Components of the GPII personalization infrastructure for use on Microsoft's "Windows" ™

47 lines (41 loc) 1.25 kB
/* * DPI support for Windows 8 * * Copyright 2016 Raising the Floor - US * * Licensed under the New BSD license. You may not use this file except in * compliance with this License. * * You may obtain a copy of the License at * https://github.com/GPII/universal/blob/master/LICENSE.txt */ "use strict"; var fluid = require("gpii-universal"); var windows = fluid.registerNamespace("gpii.windows"); /** * Sets the DPI scale of the primary display. * * @return {DpiConfig} The newly configured, actual, and maximum DPI scale. */ windows.display.setScreenDpi = function () { // TODO: Implement // Return the new configuration. return windows.display.getScreenDpi(); }; /** * Get the configured, maximum, and actual DPI scale of the primary display. * * The maximum scale is the highest DPI scale that the current screen resolution supports. The actual scale is the * configured scale, capped at the maximum (until the resolution increases). * * @return {DpiConfig} The configured, maximum, and actual DPI scale. */ windows.display.getScreenDpi = function () { // TODO: Implement fluid.log("Warning: DPI not implemented"); return { configured: 1, maximum: 1, actual: 1 }; };