| 132 | } |
| 133 | |
| 134 | void 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 | |
| 145 | float window::get_scaling(void *hwnd) |
| 146 | { |
nothing calls this directly
no outgoing calls
no test coverage detected