MCPcopy Create free account
hub / github.com/TurningWheel/Barony / drawWindowFancy

Function drawWindowFancy

src/draw.cpp:3431–3444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3429}
3430
3431void 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

Callers 6

mainFunction · 0.85
drawLobbyFiltersMethod · 0.85
mainFunction · 0.85
handleMainMenuFunction · 0.85
doSliderFunction · 0.85
doSliderFFunction · 0.85

Calls 2

makeColorRGBFunction · 0.85
drawColorMethod · 0.45

Tested by

no test coverage detected