Describing the physical width and height of the display
As part of implementing support for the touch controller hardware, OEMs must add registry values that specify the physical width and height the portion of the screen that is used to render the mobile device UI. The OS uses this information to properly scale touch gestures and help ensure a fluid user experience.
Although OEMs typically configure this behavior by adding a registry value in an INF file that is included in a driver package, this behavior can also be configured via the customization process described below. By using both options, OEMs can define the default behavior in the driver for a specific hardware component, and modify this behavior as necessary in images for different device models that use the same driver.
Create a customization answer file using the contents shown in the following code sample.
<?xml version="1.0" encoding="utf-8" ?> <ImageCustomizations xmlns="http://schemas.microsoft.com/embedded/2004/10/ImageUpdate" Name="DisplayWidthAndHeight" Description="Use to specify the physical width and height the portion of the screen that is used to render the phone UI." Owner="" OwnerType="OEM"> <Static> <Settings Path="Input/Touch/DisplayProperties"> <!-- The following values are in 10's of micrometers. --> <Setting Name="DisplayHeight" Value="" /> <Setting Name="DisplayWidth" Value="" /> </Settings> </Static> </ImageCustomizations>
Ownervalue in the customization answer file.
DisplayHeightsetting, set the
Valueto the height of the display in 10's of micrometers, formatted as a hexadecimal value. For example,
Value="0x206C"specifies a height of 83 mm.
DisplayWidthsetting, set the
Valueto the width of the display in 10's of micrometers, formatted as a hexadecimal value. For example,
Value="0x1388"specifies a width of 50 mm.