mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-28 08:06:20 -04:00
UI: Add function to get main window more easily
Adds OBSBasic::Get() to just quickly return the main window.
This commit is contained in:
@@ -6857,3 +6857,8 @@ void OBSBasic::ResizeOutputSizeOfSource()
|
||||
ResetVideo();
|
||||
on_actionFitToScreen_triggered();
|
||||
}
|
||||
|
||||
OBSBasic *OBSBasic::Get()
|
||||
{
|
||||
return reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user