made it so that a selected global source properly resizes when you reconfigure
This commit is contained in:
parent
164159b2ed
commit
97e29d43fb
4
OBS.rc
4
OBS.rc
@ -393,8 +393,8 @@ CAPTION "Sources.TransitionSource"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
RTEXT "Sources.TransitionSource.TimeBetweenBitmaps",IDC_STATIC,4,9,151,8
|
||||
EDITTEXT IDC_TRANSITIONTIME_EDIT,159,7,51,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
CONTROL "",IDC_TRANSITIONTIME,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,211,7,10,14
|
||||
EDITTEXT IDC_TRANSITIONTIME_EDIT,159,7,51,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "",IDC_TRANSITIONTIME,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,211,7,10,14
|
||||
CONTROL "Sources.TransitionSource.DisableFading",IDC_DISABLEFADING,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,25,163,10,WS_EX_RIGHT
|
||||
CONTROL "Sources.TransitionSource.FadeInOnly",IDC_FADEINONLY,
|
||||
|
@ -107,6 +107,9 @@ bool STDCALL OBS::ConfigGlobalSource(XElement *element, bool bCreating)
|
||||
if(!classInfo->configProc(globalSourceElement, bCreating))
|
||||
return false;
|
||||
|
||||
element->SetInt(TEXT("cx"), globalSourceElement->GetInt(TEXT("cx")));
|
||||
element->SetInt(TEXT("cy"), globalSourceElement->GetInt(TEXT("cy")));
|
||||
|
||||
if(App->bRunning)
|
||||
{
|
||||
for(UINT i=0; i<App->globalSources.Num(); i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user