Commit fd018c28 authored by gpoirier's avatar gpoirier

RFC 3&4 stage: FFmpeg style aint't my style

- Tabs are 4 width
- No tabs allowed

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7297 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ce2e278e
...@@ -242,12 +242,12 @@ getCurrentPointer(AVFormatContext *s1, X11Grab *s, int *x, int *y) ...@@ -242,12 +242,12 @@ getCurrentPointer(AVFormatContext *s1, X11Grab *s, int *x, int *y)
} }
#define DRAW_CURSOR_TEMPLATE(type_t) \ #define DRAW_CURSOR_TEMPLATE(type_t) \
do { \ do { \
type_t *cursor; \ type_t *cursor; \
int width_cursor; \ int width_cursor; \
uint16_t bm_b, bm_w, mask; \ uint16_t bm_b, bm_w, mask; \
\ \
for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \ for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \
if (s->mouse_wanted == 1) { \ if (s->mouse_wanted == 1) { \
bm_b = mousePointerBlack[line]; \ bm_b = mousePointerBlack[line]; \
bm_w = mousePointerWhite[line]; \ bm_w = mousePointerWhite[line]; \
...@@ -256,7 +256,7 @@ for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \ ...@@ -256,7 +256,7 @@ for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \
bm_w = mousePointerBlack[line]; \ bm_w = mousePointerBlack[line]; \
} \ } \
mask = ( 0x0001 << 15 ); \ mask = ( 0x0001 << 15 ); \
\ \
for (cursor = (type_t*) im_data, width_cursor = 0; \ for (cursor = (type_t*) im_data, width_cursor = 0; \
((width_cursor + *x) < (width + x_off) && width_cursor < 16); \ ((width_cursor + *x) < (width + x_off) && width_cursor < 16); \
cursor++, width_cursor++) { \ cursor++, width_cursor++) { \
...@@ -268,8 +268,8 @@ for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \ ...@@ -268,8 +268,8 @@ for (line = 0; line < min(20, (y_off + height) - *y); line++ ) { \
mask >>= 1; \ mask >>= 1; \
} \ } \
im_data += image->bytes_per_line; \ im_data += image->bytes_per_line; \
} \ } \
} while (0) } while (0)
static void static void
paintMousePointer(AVFormatContext *s1, X11Grab *s, int *x, int *y, XImage *image) paintMousePointer(AVFormatContext *s1, X11Grab *s, int *x, int *y, XImage *image)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment