| 2653 | } |
| 2654 | |
| 2655 | static void AdjustParams(Game_Pictures::Params& params) { |
| 2656 | if (params.magnify_width > 10000) { |
| 2657 | int new_magnify = Main_Data::game_variables->Get(params.magnify_width - 10000); |
| 2658 | Output::Debug("PicPointer: Zoom {} replaced with {}", params.magnify_width, new_magnify); |
| 2659 | params.magnify_width = new_magnify; |
| 2660 | params.magnify_height = new_magnify; |
| 2661 | } |
| 2662 | |
| 2663 | if (params.top_trans > 10000) { |
| 2664 | int new_top_trans = Main_Data::game_variables->Get(params.top_trans - 10000); |
| 2665 | Output::Debug("PicPointer: Top transparency {} replaced with {}", params.top_trans, new_top_trans); |
| 2666 | params.top_trans = new_top_trans; |
| 2667 | } |
| 2668 | |
| 2669 | if (params.bottom_trans > 10000) { |
| 2670 | int new_bottom_trans = Main_Data::game_variables->Get(params.bottom_trans - 10000); |
| 2671 | Output::Debug("PicPointer: Bottom transparency {} replaced with {}", params.bottom_trans, new_bottom_trans); |
| 2672 | params.bottom_trans = new_bottom_trans; |
| 2673 | } |
| 2674 | } |
| 2675 | |
| 2676 | static std::string ReplaceName(const std::string& str, int value, int digits) { |
| 2677 | // Replace last 4 characters with 0-padded pic_num |
no test coverage detected