Screen scaling mode types
Types of scaling modes
Synopsis:
#include <screen/screen.h>
enum { SCREEN_SCALE_NONE = 1, SCREEN_SCALE_STRETCH = 2, SCREEN_SCALE_ZOOM = 3, SCREEN_SCALE_FILL = 4, SCREEN_SCALE_HALF_LINE_SHIFT_UP = 5, SCREEN_SCALE_HALF_LINE_SHIFT_DOWN = 6 };
Data:
- SCREEN_SCALE_NONE
- Scaling is disabled, and the aspect-ratio of the image is 1:1.
- SCREEN_SCALE_STRETCH
- Scaling is enabled, and the image fills the display while preserving the aspect-ratio.
- SCREEN_SCALE_ZOOM
- Scaling is enabled, and the image fills the display while preserving the aspect-ratio.
- SCREEN_SCALE_FILL
- Scaling is enabled, and the image should fill the display while not necessarily preserving the aspect-ratio.
- SCREEN_SCALE_HALF_LINE_SHIFT_UP
- Scaling is enabled, and the image is rendered to fit the window while shifted half a line up.
- SCREEN_SCALE_HALF_LINE_SHIFT_DOWN
- Scaling is enabled, and the image is rendered to fit the window while shifted half a line down.
Library:
libscreenPage updated: