From 34a5c986ebab45f06258b6da12e0258ad570a67b Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 11 Dec 2006 23:14:28 +0000 Subject: fixed warnings and added newer quicktime svn path=/trunk/externals/pidip/; revision=6809 --- modules/pdp_lens.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'modules/pdp_lens.c') diff --git a/modules/pdp_lens.c b/modules/pdp_lens.c index 072d8d0..84aab5f 100644 --- a/modules/pdp_lens.c +++ b/modules/pdp_lens.c @@ -36,32 +36,32 @@ typedef struct pdp_lens_struct t_float x_f; t_outlet *x_outlet0; - t_int x_packet0; - t_int x_packet1; - t_int x_dropped; - t_int x_queue_id; - - t_int x_vwidth; - t_int x_vheight; - t_int x_vsize; + int x_packet0; + int x_packet1; + int x_dropped; + int x_queue_id; + + int x_vwidth; + int x_vheight; + int x_vsize; t_float x_zoom; // zoom factor - t_int x_cx; // coordinates of lens center - t_int x_cy; // coordinates of lens center - t_int x_csize; // width of the lens - t_int x_xd; - t_int x_yd; - t_int x_mode; - t_int *x_lens; - t_int x_init; + int x_cx; // coordinates of lens center + int x_cy; // coordinates of lens center + int x_csize; // width of the lens + int x_xd; + int x_yd; + int x_mode; + int *x_lens; + int x_init; } t_pdp_lens; -static void pdp_lens_preset(t_pdp_lens *x, t_int oldsize, t_int newsize) +static void pdp_lens_preset(t_pdp_lens *x, int oldsize, int newsize) { int px, py, r; - if ( x->x_lens ) freebytes(x->x_lens, oldsize * oldsize * sizeof( t_int) ); - x->x_lens = (t_int *) getbytes( newsize * newsize * sizeof( t_int ) ); + if ( x->x_lens ) freebytes(x->x_lens, oldsize * oldsize * sizeof( int) ); + x->x_lens = (int *) getbytes( newsize * newsize * sizeof( int ) ); r = x->x_csize / 2; /* it is sufficient to generate 1/4 of the lens and reflect this -- cgit v1.2.1