MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / get_rect

Method get_rect

core/src/utils/window.cc:134–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void window::get_rect(void *hwnd, int *x, int *y, int *w, int *h)
135{
136 RECT rect;
137 GetWindowRect((HWND)hwnd, &rect);
138
139 if (x) *x = rect.left;
140 if (y) *y = rect.top;
141 if (w) *w = rect.right - rect.left;
142 if (h) *h = rect.bottom - rect.top;
143}
144
145float window::get_scaling(void *hwnd)
146{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected