| 96 | } |
| 97 | |
| 98 | bool IsValidUniformSize(const Options &options) { |
| 99 | if (options.size_mode != SizeMode::Uniform) |
| 100 | return true; |
| 101 | |
| 102 | return options.window_width >= kMinWindowWidth && options.window_height >= kMinWindowHeight; |
| 103 | } |
| 104 | |
| 105 | bool MatchesTargetSize(HWND hwnd, const Rect &rect) { |
| 106 | int width = 0; |