summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:35:28 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-05 17:35:28 +0000
commit21f00e8f8ec007036d9c2d69d9c7ac17aa5181cd (patch)
treede3ba6faace28a5f48956aba00487c79d730a2d0 /libvo
parentf691833dd39284ef97d97ae7e8c52f82558804aa (diff)
downloadmpv-21f00e8f8ec007036d9c2d69d9c7ac17aa5181cd.tar.bz2
mpv-21f00e8f8ec007036d9c2d69d9c7ac17aa5181cd.tar.xz
Well - old algorithms and new stuff rgb24to16(15)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2719 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index b28e0d5e34..aa22c23899 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -704,6 +704,10 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
else
if(image_bpp == 32 && video_mode_info.BitsPerPixel == 15) rgb2rgb_fnc = rgb32to15;
else
+ if(image_bpp == 24 && video_mode_info.BitsPerPixel == 16) rgb2rgb_fnc = rgb24to16;
+ else
+ if(image_bpp == 24 && video_mode_info.BitsPerPixel == 15) rgb2rgb_fnc = rgb24to15;
+ else
if(image_bpp == 15 && video_mode_info.BitsPerPixel == 16) rgb2rgb_fnc = rgb15to16;
else
{