mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3376
Colomban Wendling (1): fix(video): do not list the same mode twice
This commit is contained in:
commit
f74ba9131c
|
@ -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…
Reference in New Issue
Block a user