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>2013-01-21 06:30:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-21 06:30:40 +0400
commit38cee985bb6d6a45fe59cc539dfa9cd6412b6f36 (patch)
tree59497913e5644e045b21ecb7ba7ad0ee3a5a8ac8 /source/blender/windowmanager/intern/wm_cursors.c
parentadd25e43adae7204d27685eafefde343096d5698 (diff)
code cleanup: style & warnings.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_cursors.c')
-rw-r--r--source/blender/windowmanager/intern/wm_cursors.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c
index a1c7404a031..794bfdde114 100644
--- a/source/blender/windowmanager/intern/wm_cursors.c
+++ b/source/blender/windowmanager/intern/wm_cursors.c
@@ -198,10 +198,14 @@ void WM_cursor_grab_enable(wmWindow *win, int wrap, int hide, int bounds[4])
bounds[3] /= fac;
}
- if (hide) mode = GHOST_kGrabHide;
- else if (wrap) mode = GHOST_kGrabWrap;
+ if (hide) {
+ mode = GHOST_kGrabHide;
+ }
+ else if (wrap) {
+ mode = GHOST_kGrabWrap;
+ }
if ((G.debug & G_DEBUG) == 0) {
- if (win && win->ghostwin) {
+ if (win->ghostwin) {
const GHOST_TabletData *tabletdata = GHOST_GetTabletData(win->ghostwin);
/* Note: There is no tabletdata on Windows if no tablet device is connected. */