Browse Source

Merge pull request #3376

Colomban Wendling (1):
      fix(video): do not list the same mode twice
pull/3366/head
sudden6 9 years ago
parent
commit
f74ba9131c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 4
      src/widget/form/settings/avform.cpp

4
src/widget/form/settings/avform.cpp

@ -235,6 +235,10 @@ void AVForm::updateVideoModes(int curIndex) @@ -235,6 +235,10 @@ void AVForm::updateVideoModes(int curIndex)
{
int i = iter->second;
VideoMode mode = allVideoModes[i];
if (videoModes.contains(mode))
continue;
videoModes.append(mode);
if (mode.width==prefRes.width() && mode.height==prefRes.height() && mode.FPS == prefFPS && prefResIndex==-1)
prefResIndex = videoModes.size() - 1;

Loading…
Cancel
Save