* Added a better mouse pointer for the eyedropper tool (thanks Bart) and also
[blender.git] / source / blender / src / drawimage.c
index 3982de571c281eeadc9aa0552aa32b727a4b767d..10f0a5271cb74a281aea72ee55043e83efcc2de8 100644 (file)
@@ -79,7 +79,9 @@
 #include "BDR_drawmesh.h"
 #include "BDR_imagepaint.h"
 
+#include "BIF_cursors.h"
 #include "BIF_gl.h"
+#include "BIF_graphics.h"
 #include "BIF_mywindow.h"
 #include "BIF_drawimage.h"
 #include "BIF_resources.h"
 #include "mydevice.h"
 #include "blendef.h"
 #include "butspace.h"  // event codes
+#include "winlay.h"
 
 #include "interface.h" /* bad.... but preview code needs UI info. Will solve... (ton) */
 
@@ -1695,10 +1698,17 @@ static void image_zoom_set_factor(float zoomfac)
 void image_viewmove(int mode)
 {
        short mval[2], mvalo[2], zoom0;
+       int oldcursor;
+       Window *win;
        
        getmouseco_sc(mvalo);
        zoom0= G.sima->zoom;
        
+       oldcursor=get_cursor();
+       win=winlay_get_active_window();
+       
+       SetBlenderCursor(BC_NSEW_SCROLLCURSOR);
+       
        while(get_mbut()&(L_MOUSE|M_MOUSE)) {
 
                getmouseco_sc(mval);
@@ -1724,6 +1734,7 @@ void image_viewmove(int mode)
                }
                else BIF_wait_for_statechange();
        }
+       window_set_cursor(win, oldcursor);
        
        if(image_preview_active(curarea, NULL, NULL)) {
                /* recalculates new preview rect */