- UNUSED macro wasn't throwing an error with GCC if a var become used.
[blender.git] / source / blender / windowmanager / intern / wm_gesture.c
index e6220eac8f0e4552fe1c5dfcad03cb6fe8c9d347..8dcf65886e48d6c8f56b36e1405490becd07e918 100644 (file)
@@ -121,7 +121,7 @@ void WM_gestures_remove(bContext *C)
 
 /* tweak and line gestures */
 #define TWEAK_THRESHOLD                10
-int wm_gesture_evaluate(bContext *C, wmGesture *gesture)
+int wm_gesture_evaluate(wmGesture *gesture)
 {
        if(gesture->type==WM_GESTURE_TWEAK) {
                rcti *rect= gesture->customdata;
@@ -159,7 +159,7 @@ int wm_gesture_evaluate(bContext *C, wmGesture *gesture)
 
 /* ******************* gesture draw ******************* */
 
-static void wm_gesture_draw_rect(wmWindow *win, wmGesture *gt)
+static void wm_gesture_draw_rect(wmGesture *gt)
 {
        rcti *rect= (rcti *)gt->customdata;
        
@@ -183,7 +183,7 @@ static void wm_gesture_draw_rect(wmWindow *win, wmGesture *gt)
        glDisable(GL_LINE_STIPPLE);
 }
 
-static void wm_gesture_draw_line(wmWindow *win, wmGesture *gt)
+static void wm_gesture_draw_line(wmGesture *gt)
 {
        rcti *rect= (rcti *)gt->customdata;
        
@@ -199,7 +199,7 @@ static void wm_gesture_draw_line(wmWindow *win, wmGesture *gt)
        
 }
 
-static void wm_gesture_draw_circle(wmWindow *win, wmGesture *gt)
+static void wm_gesture_draw_circle(wmGesture *gt)
 {
        rcti *rect= (rcti *)gt->customdata;
 
@@ -261,7 +261,7 @@ static void draw_filled_lasso(wmGesture *gt)
        }
 }
 
-static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt)
+static void wm_gesture_draw_lasso(wmGesture *gt)
 {
        short *lasso= (short *)gt->customdata;
        int i;
@@ -320,23 +320,23 @@ void wm_gesture_draw(wmWindow *win)
                wmSubWindowSet(win, gt->swinid);
                
                if(gt->type==WM_GESTURE_RECT)
-                       wm_gesture_draw_rect(win, gt);
+                       wm_gesture_draw_rect(gt);
                else if(gt->type==WM_GESTURE_TWEAK)
-                       wm_gesture_draw_line(win, gt);
+                       wm_gesture_draw_line(gt);
                else if(gt->type==WM_GESTURE_CIRCLE)
-                       wm_gesture_draw_circle(win, gt);
+                       wm_gesture_draw_circle(gt);
                else if(gt->type==WM_GESTURE_CROSS_RECT) {
                        if(gt->mode==1)
-                               wm_gesture_draw_rect(win, gt);
+                               wm_gesture_draw_rect(gt);
                        else
                                wm_gesture_draw_cross(win, gt);
                }
                else if(gt->type==WM_GESTURE_LINES) 
-                       wm_gesture_draw_lasso(win, gt);
+                       wm_gesture_draw_lasso(gt);
                else if(gt->type==WM_GESTURE_LASSO) 
-                       wm_gesture_draw_lasso(win, gt);
+                       wm_gesture_draw_lasso(gt);
                else if(gt->type==WM_GESTURE_STRAIGHTLINE)
-                       wm_gesture_draw_line(win, gt);
+                       wm_gesture_draw_line(gt);
        }
 }
 
@@ -351,5 +351,3 @@ void wm_gesture_tag_redraw(bContext *C)
 
        wm_tag_redraw_overlay(win, ar);
 }
-
-