mirror of https://github.com/mpv-player/mpv
10l (red <-> blue) fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10405 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
54632cac16
commit
5eda57a19b
|
@ -281,7 +281,7 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
|
|||
dstStride[1]=
|
||||
dstStride[2]=dstStride[0]>>1;
|
||||
if(HAS_DGA()) dst[0] += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE();
|
||||
sws_scale(sws,image,stride,y,h,dst,dstStride);
|
||||
sws_scale_ordered(sws,image,stride,y,h,dst,dstStride);
|
||||
flip_trigger = 1;
|
||||
return 0;
|
||||
}
|
||||
|
@ -426,7 +426,7 @@ static uint32_t draw_frame(uint8_t *src[])
|
|||
else
|
||||
srcStride[0] = srcW*2;
|
||||
if(HAS_DGA()) dst[0] += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE();
|
||||
sws_scale(sws,src,srcStride,0,srcH,dst,dstStride);
|
||||
sws_scale_ordered(sws,src,srcStride,0,srcH,dst,dstStride);
|
||||
flip_trigger=1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue