SnapViewportRect
function · font · primitive
- Address
0x5c70b0· 424 bytes, up to0x5c7257- Signature
void __cdecl (void)- Meaning
- Rounds the viewport rectangle to pixels and installs its orthographic matrix
- Confidence
- verified, proof one
- Finding
- font/measure#viewport-rectangle
Finding: Viewport rectangle in font: measuring and wrapping text
0x5c70b0 rounds a screen-fraction viewport rectangle to whole pixels before the device sets it.
The derivation is in the doc.
Callers 1
- CGxStringBatch::Draw font
Callees 5
- GxDeviceCaps gx
- SetDeviceProjection gx
- GetDeviceViewport gx
- BuildOrthoMatrix gxumath
- floor crt
Calls and jumps by a bare address, from tables/calls.tsv.