Contents

setDisplayMode

Set the framebuffers current display mode and depth.

Declaration

virtual IOReturn setDisplayMode(
 IODisplayModeIDdisplayMode, 
 IOIndexdepth );

Parameters

  • displayMode:

    A display mode ID representing the new mode.

  • depth:

    An index indicating the new depth configuration of the framebuffer. The index should range from zero to the value of the maxDepthIndex field from the IODisplayModeInformation structure for the display mode.

Return Value

an IOReturn code. A return other than kIOReturnSuccess will prevent the system from using the device.

Overview

IOFramebuffer subclasses should implement this method to set the current mode and depth. Other than at enableController() time, this is the only method that should change the framebuffer format and is synchronized with clients and attached accelerators to make sure access to the device is disallowed during the change.

See Also

Miscellaneous