| 602 | } |
| 603 | |
| 604 | static void LoadTheme(UITheme* theme) |
| 605 | { |
| 606 | if (CurrentTheme == theme) |
| 607 | { |
| 608 | return; |
| 609 | } |
| 610 | |
| 611 | if (CurrentTheme != nullptr) |
| 612 | { |
| 613 | if (!(CurrentTheme->Flags & UITHEME_FLAG_PREDEFINED)) |
| 614 | { |
| 615 | delete CurrentTheme; |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | CurrentTheme = theme; |
| 620 | CurrentThemePath.clear(); |
| 621 | |
| 622 | GfxInvalidateScreen(); |
| 623 | } |
| 624 | |
| 625 | static void LoadTheme(const std::string& path) |
| 626 | { |
no test coverage detected