Skip to content

Commit

Permalink
Fix Targetkbps and BufferSizeInKB being active when they aren't used
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Sep 22, 2014
1 parent f85a1d6 commit 5baa31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SettingsQSV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ void SettingsQSV::RateControlMethodChanged()
for (auto id : parameter_control_ids)
EnableWindow(GetDlgItem(hwnd, id), enabled && find(begin(mapping->enabled_ids), end(mapping->enabled_ids), id) != end(mapping->enabled_ids));

enable(IDC_TARGETKBPS, !checked(IDC_USEGLOBALBITRATE));
enable(IDC_BUFFERSIZE, !checked(IDC_USEGLOBALBUFFERSIZE));
enable(IDC_TARGETKBPS, IsWindowEnabled(GetDlgItem(hwnd, IDC_USEGLOBALBITRATE)) && !checked(IDC_USEGLOBALBITRATE));
enable(IDC_BUFFERSIZE, IsWindowEnabled(GetDlgItem(hwnd, IDC_USEGLOBALBUFFERSIZE)) && !checked(IDC_USEGLOBALBUFFERSIZE));
}

INT_PTR SettingsQSV::ProcMessage(UINT message, WPARAM wParam, LPARAM lParam)
Expand Down

0 comments on commit 5baa31a

Please sign in to comment.