From: buliabyak Date: Tue, 27 Feb 2007 06:18:45 +0000 (+0000) Subject: add paintbucket cursor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=81d2eba2db733fa1d69ade5c200d48d8cb501903;p=inkscape.git add paintbucket cursor --- diff --git a/src/flood-context.cpp b/src/flood-context.cpp index a6ef8a266..cb41ce85a 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -34,7 +34,7 @@ #include "desktop-style.h" #include "message-stack.h" #include "message-context.h" -#include "pixmaps/cursor-rect.xpm" +#include "pixmaps/cursor-paintbucket.xpm" #include "flood-context.h" #include "sp-metrics.h" #include @@ -130,9 +130,9 @@ static void sp_flood_context_init(SPFloodContext *flood_context) { SPEventContext *event_context = SP_EVENT_CONTEXT(flood_context); - event_context->cursor_shape = cursor_rect_xpm; - event_context->hot_x = 4; - event_context->hot_y = 4; + event_context->cursor_shape = cursor_paintbucket_xpm; + event_context->hot_x = 11; + event_context->hot_y = 30; event_context->xp = 0; event_context->yp = 0; event_context->tolerance = 0; diff --git a/src/pixmaps/cursor-paintbucket.xpm b/src/pixmaps/cursor-paintbucket.xpm new file mode 100644 index 000000000..619a551c7 --- /dev/null +++ b/src/pixmaps/cursor-paintbucket.xpm @@ -0,0 +1,38 @@ +/* XPM */ +static char * cursor_paintbucket_xpm[] = { +"32 32 3 1", +" c None", +". c #FFFFFF", +"+ c #000000", +" ", +" ... ", +" ... ...... ", +" ..++.. ...++++.. ", +" .+..+....++....+.. ", +" ..+..+..++.......+.. ", +" ..+..+++..........+.. ", +" ..+..+++............+. ", +" ..+++..+............+. ", +" .+++...+............+.. ", +" .++.+...+............+. ", +" .+..++..+............+. ", +" .+...+..+............+. ", +" .+....+.+............+. ", +" .+....++++...........+. ", +" ..+....+.+...........+. ", +" .+....++...........+.. ", +" .++...+..........++.. ", +" ..+....+.......++... ", +" .++...+.....++... ", +" .+...+...++... ", +" .++.++.++... ", +" .+++++... ", +" .+++. ", +" .++. ", +" .++. ", +" .++. ", +" .++. ", +" .++. ", +" .+.. ", +" ... ", +" "};