AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxVideoModeList.h File Reference

de-duplication of the options-menu resolution list, as a template so it can be unit tested without the engine (tests/cpp/test_video_mode_list.cpp). More...

#include <vector>

Go to the source code of this file.

Functions

template<class T>
void LuxDedupVideoModes (std::vector< T > &avModes)
 Collapses runs of adjacent modes with the same size into one entry with the highest refresh rate.

Detailed Description

de-duplication of the options-menu resolution list, as a template so it can be unit tested without the engine (tests/cpp/test_video_mode_list.cpp).

T needs mlDisplay, mvScreenSize (with ==) and mlRefreshRate.

Definition in file LuxVideoModeList.h.

Function Documentation

◆ LuxDedupVideoModes()

template<class T>
void LuxDedupVideoModes ( std::vector< T > & avModes)

Collapses runs of adjacent modes with the same size into one entry with the highest refresh rate.

The input is expected sorted so equal modes are adjacent.

Definition at line 16 of file LuxVideoModeList.h.