# HG changeset patch # User reimar # Date 1369471345 0 # Node ID 34116de1aa96a9ae038c7e365f723d3b7ebf821f # Parent 09b2e3d9f51b54412449b657846692ea94a91ea6 Apply forgotten move of apply_border_pos function. Fixes compilation. diff -r 09b2e3d9f51b -r 34116de1aa96 libvo/video_out.h --- a/libvo/video_out.h Sat May 25 07:43:22 2013 +0000 +++ b/libvo/video_out.h Sat May 25 08:42:25 2013 +0000 @@ -305,4 +305,13 @@ return vo_fs || vo_keepaspect; } +static inline int apply_border_pos(int full, int part, float pos) { + if (pos >= 0.0 && pos <= 1.0) { + return pos*(full - part); + } + if (pos < 0) + return pos * part; + return full - part + (pos - 1) * part; +} + #endif /* MPLAYER_VIDEO_OUT_H */ diff -r 09b2e3d9f51b -r 34116de1aa96 libvo/vo_gl.c --- a/libvo/vo_gl.c Sat May 25 07:43:22 2013 +0000 +++ b/libvo/vo_gl.c Sat May 25 08:42:25 2013 +0000 @@ -179,15 +179,6 @@ static float video_matrix[16]; static float osd_matrix[16]; -static int apply_border_pos(int full, int part, float pos) { - if (pos >= 0.0 && pos <= 1.0) { - return pos*(full - part); - } - if (pos < 0) - return pos * part; - return full - part + (pos - 1) * part; -} - static void resize(void) { int i; draw_width = (vo_rotate & 1) ? vo_dheight : vo_dwidth;