comparison libvo/vo_gl.c @ 36188:34116de1aa96

Apply forgotten move of apply_border_pos function. Fixes compilation.
author reimar
date Sat, 25 May 2013 08:42:25 +0000
parents 3b15983f5e48
children 6feedb93c073
comparison
equal deleted inserted replaced
36187:09b2e3d9f51b 36188:34116de1aa96
176 176
177 static void redraw(void); 177 static void redraw(void);
178 178
179 static float video_matrix[16]; 179 static float video_matrix[16];
180 static float osd_matrix[16]; 180 static float osd_matrix[16];
181
182 static int apply_border_pos(int full, int part, float pos) {
183 if (pos >= 0.0 && pos <= 1.0) {
184 return pos*(full - part);
185 }
186 if (pos < 0)
187 return pos * part;
188 return full - part + (pos - 1) * part;
189 }
190 181
191 static void resize(void) { 182 static void resize(void) {
192 int i; 183 int i;
193 draw_width = (vo_rotate & 1) ? vo_dheight : vo_dwidth; 184 draw_width = (vo_rotate & 1) ? vo_dheight : vo_dwidth;
194 draw_height = (vo_rotate & 1) ? vo_dwidth : vo_dheight; 185 draw_height = (vo_rotate & 1) ? vo_dwidth : vo_dheight;