MCPcopy Create free account
hub / github.com/JACoders/OpenJK / ToWindowCoords

Function ToWindowCoords

code/ui/ui_shared.cpp:8581–8590  ·  view source on GitHub ↗

================= ToWindowCoords ================= */

Source from the content-addressed store, hash-verified

8579=================
8580*/
8581void ToWindowCoords(float *x, float *y, windowDef_t *window)
8582{
8583 if (window->border != 0)
8584 {
8585 *x += window->borderSize;
8586 *y += window->borderSize;
8587 }
8588 *x += window->rect.x;
8589 *y += window->rect.y;
8590}
8591
8592/*
8593=================

Callers 2

Item_SetTextExtentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected