Add integer scaling option (#2)
This patch adds option ‚3‘ integer scaling. dst_rect is an integral multiple of src_rect. Should prevent scaling artifacts.
This commit is contained in:
parent
c1a44d38a0
commit
ed92568fb6
2 changed files with 26 additions and 1 deletions
|
@ -632,11 +632,15 @@ extern "C" {
|
|||
* "1" - Requested video resolution will be scaled to desktop resolution.
|
||||
* Aspect ratio of requested video resolution will be respected.
|
||||
* "2" - Requested video resolution will be scaled to desktop resolution.
|
||||
* "3" - Requested video resolution will be scaled to desktop resolution.
|
||||
* Aspect ratio of requested video resolution will be respected.
|
||||
* If possible output resolution will be integral multiple of video
|
||||
* resolution.
|
||||
*/
|
||||
#define SDL_HINT_VIDEO_RPI_SCALE_MODE "SDL_VIDEO_RPI_SCALE_MODE"
|
||||
|
||||
/**
|
||||
* \brief Tell dispmanx to set an specific aspect ratio.
|
||||
* \brief Tell dispmanx to set a specific aspect ratio.
|
||||
*
|
||||
* This hint only applies to the rpi video driver.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue