diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-27 19:09:56 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-27 19:09:56 +0300 |
commit | f0f451fc16880315c8c094aaabd0fbf8a06ffede (patch) | |
tree | bfd93ce72af37a8c08898b745e09af08c36e4314 /source/blender/windowmanager/intern/wm_gesture.c | |
parent | 0714d28236e66b258de90bcbb8a1a821ee424a71 (diff) |
2.5
Notifier system upgrade, based on Brecht's doc.
Implementation notes:
http://wiki.blender.org/index.php/BlenderDev/Blender2.5/DataNotifiers#Implementation
In short: let's try to strictly communicate in a notifier what happened.
The listeners then can act themselves. It also means that a frame-changed
notifier doesn't send out redraws, the editors themselves can decide.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_gesture.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_gesture.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c index 437a4494a2e..a8dd6f41e47 100644 --- a/source/blender/windowmanager/intern/wm_gesture.c +++ b/source/blender/windowmanager/intern/wm_gesture.c @@ -46,6 +46,8 @@ #include "wm_event_system.h" #include "wm_subwindow.h" +#include "ED_screen.h" + #include "BIF_gl.h" #include "BIF_glutil.h" @@ -227,4 +229,13 @@ void wm_gesture_draw(wmWindow *win) } } - +void wm_gesture_tag_redraw(bContext *C) +{ + bScreen *screen= CTX_wm_screen(C); + ARegion *ar= CTX_wm_region(C); + + if(screen) + screen->do_gesture= 1; + if(ar) + ED_region_tag_redraw(ar); +} |