made it so that a selected global source properly resizes when you reconfigure

This commit is contained in:
jp9000 2013-04-19 12:32:58 -07:00
parent 164159b2ed
commit 97e29d43fb
2 changed files with 5 additions and 2 deletions

4
OBS.rc
View File

@ -393,8 +393,8 @@ CAPTION "Sources.TransitionSource"
FONT 8, "MS Shell Dlg", 400, 0, 0x1 FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN BEGIN
RTEXT "Sources.TransitionSource.TimeBetweenBitmaps",IDC_STATIC,4,9,151,8 RTEXT "Sources.TransitionSource.TimeBetweenBitmaps",IDC_STATIC,4,9,151,8
EDITTEXT IDC_TRANSITIONTIME_EDIT,159,7,51,14,ES_AUTOHSCROLL | ES_READONLY 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,211,7,10,14 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, CONTROL "Sources.TransitionSource.DisableFading",IDC_DISABLEFADING,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,25,163,10,WS_EX_RIGHT "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,25,163,10,WS_EX_RIGHT
CONTROL "Sources.TransitionSource.FadeInOnly",IDC_FADEINONLY, CONTROL "Sources.TransitionSource.FadeInOnly",IDC_FADEINONLY,

View File

@ -107,6 +107,9 @@ bool STDCALL OBS::ConfigGlobalSource(XElement *element, bool bCreating)
if(!classInfo->configProc(globalSourceElement, bCreating)) if(!classInfo->configProc(globalSourceElement, bCreating))
return false; return false;
element->SetInt(TEXT("cx"), globalSourceElement->GetInt(TEXT("cx")));
element->SetInt(TEXT("cy"), globalSourceElement->GetInt(TEXT("cy")));
if(App->bRunning) if(App->bRunning)
{ {
for(UINT i=0; i<App->globalSources.Num(); i++) for(UINT i=0; i<App->globalSources.Num(); i++)