More screen modes.

This commit is contained in:
2025-10-06 16:23:36 -05:00
parent 6e5c5f61db
commit f3a6c8df71
2 changed files with 86 additions and 1 deletions

View File

@@ -15,8 +15,10 @@ typedef enum {
SCREEN_MODE_BACKBUFFER,
#if DISPLAY_SIZE_DYNAMIC == 1
SCREEN_MODE_FIXED_SIZE,
SCREEN_MODE_ASPECT_RATIO,// Maintains aspect at all cost
SCREEN_MODE_FIXED_HEIGHT, // Fixed height, width expands/contracts as needed
SCREEN_MODE_FIXED_WIDTH, // Fixed width, height expands/contracts as needed
#endif
} screenmode_t;
@@ -43,6 +45,11 @@ typedef struct {
#endif
union {
struct {
int32_t width;
int32_t height;
} fixedSize;
struct {
float_t ratio;
} aspectRatio;
@@ -50,6 +57,10 @@ typedef struct {
struct {
int32_t height;
} fixedHeight;
struct {
int32_t width;
} fixedWidth;
};
} screen_t;