summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-28 10:28:08 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-28 10:28:08 +0000
commitce1e5d842b44623bc002b708bfa3371136843b1c (patch)
treebc6d929c6f94d7964afd297f27726d13faf70bb7 /libvo
parentd6bed371d7742c5f9a3f934540212875d0e3bc4c (diff)
downloadmpv-ce1e5d842b44623bc002b708bfa3371136843b1c.tar.bz2
mpv-ce1e5d842b44623bc002b708bfa3371136843b1c.tar.xz
vo_vesa: more rgb2rgb support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2506 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 7f7cb9cab4..1e9c01c315 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -582,6 +582,8 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
{
if(image_bpp == 24 && video_mode_info.BitsPerPixel == 32) rgb2rgb_fnc = rgb24to32;
else
+ if(image_bpp == 32 && video_mode_info.BitsPerPixel == 24) rgb2rgb_fnc = rgb32to24;
+ else
{
printf("vo_vesa: Can't convert %u to %u\n",image_bpp,video_mode_info.BitsPerPixel);
return -1;