| 542 | |
| 543 | |
| 544 | static void flipBitmap(uint8_t* pixels, int width, int height, int depth) { |
| 545 | for (int y = 0; y < height / 2; y++) { |
| 546 | int flipY = height - y - 1; |
| 547 | uint8_t tmp[width * depth]; |
| 548 | std::memcpy(tmp, &pixels[y * width * depth], width * depth); |
| 549 | std::memcpy(&pixels[y * width * depth], &pixels[flipY * width * depth], width * depth); |
| 550 | std::memcpy(&pixels[flipY * width * depth], tmp, width * depth); |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | |
| 555 | void Window::screenshot(const std::string& screenshotPath) { |
no outgoing calls
no test coverage detected