Docs » Autodocs » graphics.library » CoerceMode
CoerceMode -- calculate ViewPort mode coercion (V39)
ID = CoerceMode(RealViewPort, MonitorID, Flags); d0 a0 d0 d1 ULONG CoerceMode(struct ViewPort *, ULONG, ULONG);
To determine the best mode in the MonitorID to coerce RealViewPort to, given the restrictions set in Flags.
RealViewPort - ViewPort to coerce MonitorID - Montor number to coerce to (ie a mode masked with MONITOR_ID_MASK). Flags - PRESERVE_COLORS - keep the number of bitplanes in the ViewPort. AVOID_FLICKER - do not coerce to an interlace mode
ID - ID of the best mode to coerce to, or INVALID_ID if could not coerce (see NOTES).
This function takes into account the compatibility of the Monitor being coerced to, and the ViewPort that is being coerced. Incompatibilities will cause a result of INVALID_ID.
newmode = CoerceMode(vp, VGA_MONITOR_ID, PRESERVE_COLORS);
<graphics/coerce.h>, <graphics/displayinfo.h>
|