mirror of https://github.com/mpv-player/mpv
Enable OSD also for BGR32, the code is the same as for RGB32.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31015 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a8a98ee6d1
commit
c0b8b92d99
|
@ -104,6 +104,7 @@ static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src, unsigne
|
||||||
{
|
{
|
||||||
switch (image_format)
|
switch (image_format)
|
||||||
{
|
{
|
||||||
|
case IMGFMT_BGR32:
|
||||||
case IMGFMT_RGB32:
|
case IMGFMT_RGB32:
|
||||||
vo_draw_alpha_rgb32(w,h,src,srca,stride,image_data+4*(y0*image_width+x0),4*image_width);
|
vo_draw_alpha_rgb32(w,h,src,srca,stride,image_data+4*(y0*image_width+x0),4*image_width);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue