- Add new aspect mode EImageAspect_Monitor , match the aspect of the monitor

- Added code to make sure the QMainWindow matches the screen size, dynamic rotation of the monitor caused incorrect screen sizes
This commit is contained in:
Alfred Reynolds
2021-08-03 17:56:29 +12:00
parent 096a68636c
commit e8e4a2a1ce
5 changed files with 64 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
#include <string>
// possible aspect ratios of an image
enum EImageAspect { EImageAspect_Landscape = 0, EImageAspect_Portrait, EImageAspect_Any };
enum EImageAspect { EImageAspect_Landscape = 0, EImageAspect_Portrait, EImageAspect_Any, EImageAspect_Monitor /* match monitors aspect */ };
// options to consider when displaying an image
struct ImageDisplayOptions_t