- Documentation
- Client functions
- dxSetAspectRatioAdjustmentEnabled
Function
dxSetAspectRatioAdjustmentEnabled
Turns on drawing aspect ratio correction on wide screens. The value is stored for compatibility with existing scripts (dxIsAspectRatioAdjustmentEnabled) but does not change drawing; compute positions from guiGetScreenSize.
Syntax
bool dxSetAspectRatioAdjustmentEnabled(bool enabled [, float sourceRatio])Arguments
enabledbool- The setting.
sourceRatiofloat, optional- Source ratio.
Returns
true.
Example
dxSetAspectRatioAdjustmentEnabled(true, 4 / 3)