| 892 | } |
| 893 | |
| 894 | void WindowMovePosition(WindowBase& w, const ScreenCoordsXY& deltaCoords) |
| 895 | { |
| 896 | if (deltaCoords.x == 0 && deltaCoords.y == 0) |
| 897 | return; |
| 898 | |
| 899 | // Invalidate old region |
| 900 | w.invalidate(); |
| 901 | |
| 902 | // Translate window and viewport |
| 903 | w.windowPos += deltaCoords; |
| 904 | if (w.viewport != nullptr) |
| 905 | { |
| 906 | w.viewport->pos += deltaCoords; |
| 907 | } |
| 908 | |
| 909 | // Invalidate new region |
| 910 | w.invalidate(); |
| 911 | } |
| 912 | |
| 913 | void WindowSetPosition(WindowBase& w, const ScreenCoordsXY& screenCoords) |
| 914 | { |
no test coverage detected