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:
authorMatt Ebb <matt@mke3.net>2006-06-15 18:22:59 +0400
committerMatt Ebb <matt@mke3.net>2006-06-15 18:22:59 +0400
commitd5b3e75652de955c24ec06901991927332d4e22b (patch)
tree64eb99e6298252a51c98777dcb49eceaf08f5d9c /source/blender/src/drawseq.c
parent986f999671bad332b6bedc9e5ec8160d71cb515a (diff)
* Added a better mouse pointer for the eyedropper tool (thanks Bart) and also
some 2d scroll pointers
Diffstat (limited to 'source/blender/src/drawseq.c')
-rw-r--r--source/blender/src/drawseq.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/src/drawseq.c b/source/blender/src/drawseq.c
index 373af6c3b01..22f31bc7e4f 100644
--- a/source/blender/src/drawseq.c
+++ b/source/blender/src/drawseq.c
@@ -56,8 +56,10 @@
#include "BKE_plugin_types.h"
#include "BKE_scene.h"
#include "BKE_utildefines.h"
-
+
+#include "BIF_cursors.h"
#include "BIF_gl.h"
+#include "BIF_graphics.h"
#include "BIF_mywindow.h"
#include "BIF_screen.h"
#include "BIF_drawseq.h"
@@ -80,6 +82,7 @@
#include "blendef.h" /* CFRA */
#include "mydevice.h" /* REDRAWSEQ */
#include "interface.h"
+#include "winlay.h"
#define SEQ_LEFTHANDLE 1
#define SEQ_RIGHTHANDLE 2
@@ -918,6 +921,8 @@ void seq_viewmove(SpaceSeq *sseq)
ScrArea *sa;
short mval[2], mvalo[2];
short rectx, recty, xmin, xmax, ymin, ymax, pad;
+ int oldcursor;
+ Window *win;
sa = sseq->area;
rectx= (G.scene->r.size*G.scene->r.xsch)/100;
@@ -931,6 +936,11 @@ void seq_viewmove(SpaceSeq *sseq)
getmouseco_sc(mvalo);
+ oldcursor=get_cursor();
+ win=winlay_get_active_window();
+
+ SetBlenderCursor(BC_NSEW_SCROLLCURSOR);
+
while(get_mbut()&(L_MOUSE|M_MOUSE)) {
getmouseco_sc(mval);
@@ -952,6 +962,7 @@ void seq_viewmove(SpaceSeq *sseq)
}
else BIF_wait_for_statechange();
}
+ window_set_cursor(win, oldcursor);
}
#define SEQ_BUT_PLUGIN 1