diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-07-05 04:46:52 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-07-05 04:46:52 +0400 |
commit | bc60480d15c12349db5a8731ba356cce66994174 (patch) | |
tree | aa6427f8470397d0fbbf7acfa645ebba3ead2d77 /source/blender/src/cursors.c | |
parent | 44ed77b888d6700d3f5560ff27320bd16214b170 (diff) |
cursors.c for blender's special cursors was half done.
GetBlenderCursor was prototyped but never defined. I filled it in, might be useful at one point (and for some uncommited evil Py code of mine).
Diffstat (limited to 'source/blender/src/cursors.c')
-rw-r--r-- | source/blender/src/cursors.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/cursors.c b/source/blender/src/cursors.c index bf258774daa..f4d6c8278f7 100644 --- a/source/blender/src/cursors.c +++ b/source/blender/src/cursors.c @@ -86,6 +86,10 @@ Setting big_bm=NULL disables the large version of the cursor. static BCursor *BlenderCursor[BC_NUMCURSORS]; /*Points to static BCursor Structs */ static short CurrentCursor=-1, LastCursor=-1; +short GetBlenderCursor(void) { + return CurrentCursor; +} + void SetBlenderCursor(short curs){ Window *win; @@ -101,7 +105,8 @@ void SetBlenderCursor(short curs){ if (curs==LASTCURSOR) curs=LastCursor; if (curs==SYSCURSOR) { /* System default Cursor */ - set_cursor(CURSOR_STD); + window_set_cursor(win, CURSOR_STD); + //set_cursor(CURSOR_STD); } else if ( (U.curssize==0) || (BlenderCursor[curs]->big_bm == NULL) ) { window_set_custom_cursor_ex(win, BlenderCursor[curs], 0); |