mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-04 14:00:46 +09:00
Add controller button icons in hotkeys, separate keyboard hotkeys and controller hotkeys
This commit is contained in:
@@ -67,4 +67,11 @@ namespace gsr {
|
||||
|
||||
return from;
|
||||
}
|
||||
|
||||
mgl::vec2f clamp_keep_aspect_ratio(mgl::vec2f from, mgl::vec2f to) {
|
||||
if(from.x > to.x || from.y > to.y)
|
||||
return scale_keep_aspect_ratio(from, to);
|
||||
else
|
||||
return from;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user