Table of contents
TOC
Collapse the table of content
Expand the table of content

Describing the physical width and height of the display

Last Updated: 12/12/2016

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.

Note
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.

Constraints: None

Instructions:

  1. 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>
    
  2. Specify an Owner value in the customization answer file.

  3. For the DisplayHeight setting, set the Value to 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.

  4. For the DisplayWidth setting, set the Value to 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.

Send comments about this topic to Microsoft

© 2017 Microsoft