diff options
Diffstat (limited to 'main/viewport_state.h')
| -rw-r--r-- | main/viewport_state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/viewport_state.h b/main/viewport_state.h index 3f6147f..4e6fbd6 100644 --- a/main/viewport_state.h +++ b/main/viewport_state.h @@ -46,3 +46,8 @@ void viewport_state_unlock(void); // on the current orientation. Caller-owned static storage; safe to read // without the lock (atomic snapshot). const char *viewport_state_resolution_str(void); + +// Effective width/height for the current orientation: portrait = 480x800 +// (rotated software-side from the panel's 800x480), landscape = 800x480. +// Acquires the state lock internally. +void viewport_state_effective_dims(uint16_t *w, uint16_t *h); |
