diff options
author | Daniel Dunbar <daniel@zuster.org> | 2003-03-24 04:46:05 +0300 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2003-03-24 04:46:05 +0300 |
commit | 1f3f52f5e4eb8b55a7ba1d7bc1d656b6a12f0df0 (patch) | |
tree | b57723c590e41321824bc4a7ce31260f1031b32e /source/blender/src/editimasel.c | |
parent | a6a50cc27f9f961ac78ae63aea75a5931f3bd333 (diff) |
Update space dispatch:
- drawXXXspace, changeXXXspace, and winqreadXXXspace now receive the area
and spacedata as explicit arguments, allowing them to access private
data w/o going through globals.
- pass the new BWinEvent through to the winqreadXXXspace, allowing future
access to extended event data.
Removed direct calls to winqreadXXXspace to simulate user actions, replaced
by calls to action functions in edit.c or the appropriate handler.
Diffstat (limited to 'source/blender/src/editimasel.c')
-rw-r--r-- | source/blender/src/editimasel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/editimasel.c b/source/blender/src/editimasel.c index 8052de6b64c..c4da07e4c7c 100644 --- a/source/blender/src/editimasel.c +++ b/source/blender/src/editimasel.c @@ -61,6 +61,7 @@ #include "BIF_screen.h" #include "BIF_interface.h" #include "BIF_imasel.h" +#include "BIF_mywindow.h" #include "BSE_filesel.h" #include "BSE_drawimasel.h" @@ -83,8 +84,11 @@ static void draw_icon_imasel(void) scrarea_queue_winredraw(curarea); } -void winqreadimaselspace(unsigned short event, short val, char ascii) +void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt) { + unsigned short event= evt->event; + short val= evt->val; + char ascii= evt->ascii; SpaceImaSel *simasel; short mval[2]; |