diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 19:00:08 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-15 19:00:08 +0400 |
commit | 573f86bc3cdb80804a94d92f3d6df5c5db028a10 (patch) | |
tree | 2028b5b11c797eb17e9b5292ebb1d51307034259 /source/blender/src/drawipo.c | |
parent | 2501bc1ad6cc88ce4e19fa5a3f81a4c79512ec42 (diff) |
- remove some redundant drawing code
- mousewheel zooming in drawipo used uninitialized var (MSVC run time
error).
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r-- | source/blender/src/drawipo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 1d649620fb9..d825b551825 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -1924,7 +1924,7 @@ int view2dzoom(unsigned short event) } } } - if(mval[0]!=mvalo[0] || mval[1]!=mvalo[1]) { + if(ELEM(event, WHEELUPMOUSE, WHEELDOWNMOUSE) || mval[0]!=mvalo[0] || mval[1]!=mvalo[1]) { if(U.viewzoom!=USER_ZOOM_CONT) { mvalo[0]= mval[0]; |