Merge branch 'development' into cmake/SPEC-2513_w4018
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Gems/EMotionFX/Code/EMotionFX/Source/Actor.cpp
This commit is contained in:
@@ -644,13 +644,31 @@ void CViewportTitleDlg::CreateViewportInformationMenu()
|
||||
|
||||
void CViewportTitleDlg::AddResolutionMenus(QMenu* menu, std::function<void(int, int)> callback, const QStringList& customPresets)
|
||||
{
|
||||
static const CRenderViewport::SResolution resolutions[] = {
|
||||
CRenderViewport::SResolution(1280, 720),
|
||||
CRenderViewport::SResolution(1920, 1080),
|
||||
CRenderViewport::SResolution(2560, 1440),
|
||||
CRenderViewport::SResolution(2048, 858),
|
||||
CRenderViewport::SResolution(1998, 1080),
|
||||
CRenderViewport::SResolution(3840, 2160)
|
||||
struct SResolution
|
||||
{
|
||||
SResolution()
|
||||
: width(0)
|
||||
, height(0)
|
||||
{
|
||||
}
|
||||
|
||||
SResolution(int w, int h)
|
||||
: width(w)
|
||||
, height(h)
|
||||
{
|
||||
}
|
||||
|
||||
int width;
|
||||
int height;
|
||||
};
|
||||
|
||||
static const SResolution resolutions[] = {
|
||||
SResolution(1280, 720),
|
||||
SResolution(1920, 1080),
|
||||
SResolution(2560, 1440),
|
||||
SResolution(2048, 858),
|
||||
SResolution(1998, 1080),
|
||||
SResolution(3840, 2160)
|
||||
};
|
||||
|
||||
static const size_t resolutionCount = sizeof(resolutions) / sizeof(resolutions[0]);
|
||||
|
||||
Reference in New Issue
Block a user