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
path: root/source
diff options
context:
space:
mode:
authorRobert Wenzlaff <rwenzlaff@soylent-green.com>2003-11-12 16:32:11 +0300
committerRobert Wenzlaff <rwenzlaff@soylent-green.com>2003-11-12 16:32:11 +0300
commita0471975d869cf70aa81a4bb3f2c896c3d5f0b26 (patch)
tree2d6672d50067a5ce81205d6291bf47eb54a50a57 /source
parentbd993f13d40d1b08798bd0145e3466239ab29277 (diff)
Adds Hotspot control to custom cursor.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editmesh.c2
-rw-r--r--source/blender/src/editscreen.c2
-rw-r--r--source/blender/src/ghostwinlay.c5
-rw-r--r--source/blender/src/renderwin.c2
-rw-r--r--source/blender/src/winlay.h3
5 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c
index 7b5cba2927b..1525c69125a 100644
--- a/source/blender/src/editmesh.c
+++ b/source/blender/src/editmesh.c
@@ -7376,7 +7376,7 @@ void KnifeSubdivide(char mode){
oldcursor=get_cursor();
//set_cursor(CURSOR_PENCIL);
win=winlay_get_active_window();
- window_set_custom_cursor(win, mask, bitmap);
+ window_set_custom_cursor(win, mask, bitmap, 0, 15);
//GHOST_SetCustomCursorShape(win->ghostwin, mask, bitmap, 0, 15);
curve=get_mouse_trail(&len, TRAIL_MIXED);
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index 10fdf34e455..cdf542f6dd4 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -3068,7 +3068,7 @@ void set_timecursor(int nr)
}
curcursor= CURSOR_NONE;
- window_set_custom_cursor(mainwin, mask, bitmap);
+ window_set_custom_cursor(mainwin, mask, bitmap, 7, 7);
BIF_renderwin_set_custom_cursor(mask, bitmap);
}
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c
index 38df9ead5e0..33ddf13cd1a 100644
--- a/source/blender/src/ghostwinlay.c
+++ b/source/blender/src/ghostwinlay.c
@@ -326,8 +326,9 @@ void window_set_cursor(Window *win, int curs) {
}
}
-void window_set_custom_cursor(Window *win, unsigned char mask[16][2], unsigned char bitmap[16][2]) {
- GHOST_SetCustomCursorShape(win->ghostwin, bitmap, mask, 7, 7);
+void window_set_custom_cursor(Window *win, unsigned char mask[16][2],
+ unsigned char bitmap[16][2], int hotx, int hoty) {
+ GHOST_SetCustomCursorShape(win->ghostwin, bitmap, mask, hotx, hoty);
}
void window_make_active(Window *win) {
diff --git a/source/blender/src/renderwin.c b/source/blender/src/renderwin.c
index 5c7aefc7e63..bdb60084b98 100644
--- a/source/blender/src/renderwin.c
+++ b/source/blender/src/renderwin.c
@@ -985,6 +985,6 @@ void BIF_toggle_render_display(void)
void BIF_renderwin_set_custom_cursor(unsigned char mask[16][2], unsigned char bitmap[16][2])
{
if (render_win) {
- window_set_custom_cursor(render_win->win, mask, bitmap);
+ window_set_custom_cursor(render_win->win, mask, bitmap, 7, 7);
}
}
diff --git a/source/blender/src/winlay.h b/source/blender/src/winlay.h
index 2f5cc3ce386..5cfac471710 100644
--- a/source/blender/src/winlay.h
+++ b/source/blender/src/winlay.h
@@ -64,7 +64,8 @@ char* window_get_title (Window *win);
void window_set_title (Window *win, char *title);
void window_set_cursor (Window *win, int cursor);
-void window_set_custom_cursor (Window *win, unsigned char mask[16][2], unsigned char bitmap[16][2]);
+void window_set_custom_cursor (Window *win, unsigned char mask[16][2],
+ unsigned char bitmap[16][2], int hotx, int hoty );
void window_warp_pointer (Window *win, int x, int y);