[Core] Add scalar versions of Vector* min/max/clamp/snap(ped)
Convenience for a number of cases operating on single values
This commit is contained in:
@ -2321,7 +2321,7 @@ void DisplayServerMacOS::window_set_window_buttons_offset(const Vector2i &p_offs
|
||||
WindowData &wd = windows[p_window];
|
||||
float scale = screen_get_max_scale();
|
||||
wd.wb_offset = p_offset / scale;
|
||||
wd.wb_offset = wd.wb_offset.max(Vector2i(12, 12));
|
||||
wd.wb_offset = wd.wb_offset.maxi(12);
|
||||
if (wd.window_button_view) {
|
||||
[wd.window_button_view setOffset:NSMakePoint(wd.wb_offset.x, wd.wb_offset.y)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user