Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-24 06:51:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 06:51:46 +0400
commit2f348d8b5d7d897ad44d192a2fd5f2b99b906c76 (patch)
tree1b2612031fd1cb0e521c2e0e444e7b0bd2b77646 /source/blender/windowmanager/intern/wm_dragdrop.c
parentd6fd5266d0514e6d31fd0e11aab5322846d78589 (diff)
style cleanup: mainly for mesh code, also some WM function use.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_dragdrop.c')
-rw-r--r--source/blender/windowmanager/intern/wm_dragdrop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_dragdrop.c b/source/blender/windowmanager/intern/wm_dragdrop.c
index 299266154dd..7f9633f939a 100644
--- a/source/blender/windowmanager/intern/wm_dragdrop.c
+++ b/source/blender/windowmanager/intern/wm_dragdrop.c
@@ -280,13 +280,13 @@ static const char *wm_drag_name(wmDrag *drag)
static void drag_rect_minmax(rcti *rect, int x1, int y1, int x2, int y2)
{
if(rect->xmin > x1)
- rect->xmin= x1;
+ rect->xmin = x1;
if(rect->xmax < x2)
- rect->xmax= x2;
+ rect->xmax = x2;
if(rect->ymin > y1)
- rect->ymin= y1;
+ rect->ymin = y1;
if(rect->ymax < y2)
- rect->ymax= y2;
+ rect->ymax = y2;
}
/* called in wm_draw.c */
@@ -300,8 +300,8 @@ void wm_drags_draw(bContext *C, wmWindow *win, rcti *rect)
cursorx= win->eventstate->x;
cursory= win->eventstate->y;
if(rect) {
- rect->xmin= rect->xmax= cursorx;
- rect->ymin= rect->ymax= cursory;
+ rect->xmin = rect->xmax = cursorx;
+ rect->ymin = rect->ymax = cursory;
}
/* XXX todo, multiline drag draws... but maybe not, more types mixed wont work well */