diff options
author | Colin Snover | 2017-08-27 16:31:57 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-12 10:12:53 -0500 |
commit | 2228ae255c176478225ae5ff271db323ee31b9cc (patch) | |
tree | 6cbdaaf4d65deb61608ed4823f983e31c5eec879 /engines/kyra/util.h | |
parent | e1c33a6b974352bc154ab2023fb5d678b5e6f5bc (diff) | |
download | scummvm-rg350-2228ae255c176478225ae5ff271db323ee31b9cc.tar.gz scummvm-rg350-2228ae255c176478225ae5ff271db323ee31b9cc.tar.bz2 scummvm-rg350-2228ae255c176478225ae5ff271db323ee31b9cc.zip |
SDL: List supported 32bpp pixel formats when using SDL2
_hwscreen is always initialized to 16bpp so the supported 32bpp
pixel formats would never be put into the list of supported pixel
formats, making it useless for engines to query for usable 32bpp
pixel formats.
This patch changes things so that the native desktop pixel format
is at the top of the supported formats list, and all pixel formats
<= the default desktop pixel format will now show up in the list
of supported formats. ("Supported" is somewhat of a misnomer here
since there is no hardware querying beyond checking the default
desktop pixel format. SDL generally accepts a wide variety of pixel
formats and tries to convert them to whatever the hardware
supports.)
Diffstat (limited to 'engines/kyra/util.h')
0 files changed, 0 insertions, 0 deletions