Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>scaleviewportext</b> modify viewport extents http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ScaleViewportExt     Modify Viewport Extents

DWORD ScaleViewportExt(hDC, Xnum, Xdenom, Ynum, Ydenom)
HDC hDC;
short Xnum;
short Xdenom;
short Ynum;
short Ydenom;

Returns:        Previous viewport extents. Y in high order word, X in
                low order word.

Note:           The following formula is used:

                    xNewVE = (xOldVE x Xnum) / Xdenom
                    yNewVE = (yOldVE x Ynum) / Ydenom

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson