| 3429 | } |
| 3430 | |
| 3431 | void drawWindowFancy(int x1, int y1, int x2, int y2) |
| 3432 | { |
| 3433 | auto white = Image::get("images/system/white.png"); |
| 3434 | auto backdrop = Image::get("images/system/fancyWindow.png"); |
| 3435 | |
| 3436 | white->drawColor(nullptr, SDL_Rect{x1, y1, x2 - x1, y2 - y1}, |
| 3437 | SDL_Rect{0, 0, xres, yres}, makeColorRGB(63, 63, 63)); |
| 3438 | |
| 3439 | white->drawColor(nullptr, SDL_Rect{x1 + 1, y1 + 1, x2 - x1 - 2, y2 - y1 - 2}, |
| 3440 | SDL_Rect{0, 0, xres, yres}, makeColorRGB(127, 127, 127)); |
| 3441 | |
| 3442 | backdrop->drawColor(nullptr, SDL_Rect{x1 + 2, y1 + 2, x2 - x1 - 4, y2 - y1 - 4}, |
| 3443 | SDL_Rect{0, 0, xres, yres}, makeColorRGB(191, 191, 191)); |
| 3444 | } |
| 3445 | |
| 3446 | /*------------------------------------------------------------------------------- |
| 3447 |
no test coverage detected