| 622 | } |
| 623 | |
| 624 | void Reload(const ElementLoadContext ctx) { |
| 625 | const auto old_ctx = this->load_ctx; |
| 626 | this->load_ctx = ctx; |
| 627 | this->load_ctx.img_custom_width = old_ctx.img_custom_width; |
| 628 | this->load_ctx.img_custom_height = old_ctx.img_custom_height; |
| 629 | this->Load(); |
| 630 | this->load_ctx = old_ctx; |
| 631 | } |
| 632 | |
| 633 | inline u32 GetDrawX(const u32 width) { |
| 634 | auto draw_x = this->x; |
no test coverage detected