UI: Add OBSBasicPreview::Get helper func

This commit is contained in:
jp9000
2019-02-11 15:25:42 -08:00
parent 25bc6db718
commit 7068e61fd9
2 changed files with 7 additions and 0 deletions

View File

@@ -1587,3 +1587,8 @@ void OBSBasicPreview::SetScalingAmount(float newScalingAmountVal) {
scrollingOffset.y *= newScalingAmountVal / scalingAmount;
scalingAmount = newScalingAmountVal;
}
OBSBasicPreview *OBSBasicPreview::Get()
{
return OBSBasic::Get()->ui->preview;
}