mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-26 11:28:56 -05:00
UI: Add OBSBasicPreview::Get helper func
This commit is contained in:
@@ -1587,3 +1587,8 @@ void OBSBasicPreview::SetScalingAmount(float newScalingAmountVal) {
|
||||
scrollingOffset.y *= newScalingAmountVal / scalingAmount;
|
||||
scalingAmount = newScalingAmountVal;
|
||||
}
|
||||
|
||||
OBSBasicPreview *OBSBasicPreview::Get()
|
||||
{
|
||||
return OBSBasic::Get()->ui->preview;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user