Mercurial > mplayer.hg
changeset 30310:6693b4a6a284
Do not depend on PIX_FMT_RGB32 which is (currently?) not part of the public API.
author | reimar |
---|---|
date | Sun, 17 Jan 2010 14:53:12 +0000 |
parents | ddd809228aef |
children | 8a67140f5fc1 |
files | gui/bitmap.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/bitmap.c Sun Jan 17 14:40:44 2010 +0000 +++ b/gui/bitmap.c Sun Jan 17 14:53:12 2010 +0000 @@ -59,7 +59,8 @@ case PIX_FMT_GRAY8: bf->BPP = 8; break; case PIX_FMT_GRAY16BE: bf->BPP = 16; break; case PIX_FMT_RGB24: bf->BPP = 24; break; - case PIX_FMT_RGB32: bf->BPP = 32; break; + case PIX_FMT_BGRA: + case PIX_FMT_ARGB: bf->BPP = 32; break; default: bf->BPP = 0; break; } if (decode_ok && bf->BPP) {