Optimal resolution

Returns optimal screen width and height.

Parameters

A1 [in,1u]
Device: screen - 5
A2 [in,1u]
Message type - 11
BX [out,4i]
Width coordinate of the optimal resolution
BY [out,4i]
Height coordinate of the optimal resolution

Description

This message allows to obtain optimal resolution of the screen. Optimal resolution depends on the current mode:

...as well as the current screen size (size of the virtual machine main window).

If VM isn't able to obtain optimal resolution, message returns zeros as width and height.