yutani: pointing hand cursor
This commit is contained in:
parent
a174aa1b66
commit
e60de1aed3
@ -585,6 +585,7 @@ static void draw_cursor(yutani_globals_t * yg, int x, int y, int cursor) {
|
||||
case YUTANI_CURSOR_TYPE_RESIZE_HORIZONTAL: sprite = &yg->mouse_sprite_resize_h; break;
|
||||
case YUTANI_CURSOR_TYPE_RESIZE_UP_DOWN: sprite = &yg->mouse_sprite_resize_da; break;
|
||||
case YUTANI_CURSOR_TYPE_RESIZE_DOWN_UP: sprite = &yg->mouse_sprite_resize_db; break;
|
||||
case YUTANI_CURSOR_TYPE_POINT: sprite = &yg->mouse_sprite_point; break;
|
||||
}
|
||||
}
|
||||
if (sprite != previous) {
|
||||
@ -2180,6 +2181,7 @@ int main(int argc, char * argv[]) {
|
||||
load_sprite(&yg->mouse_sprite_resize_h, MOUSE_DIR "resize-horizontal.png");
|
||||
load_sprite(&yg->mouse_sprite_resize_da, MOUSE_DIR "resize-uldr.png");
|
||||
load_sprite(&yg->mouse_sprite_resize_db, MOUSE_DIR "resize-dlur.png");
|
||||
load_sprite(&yg->mouse_sprite_point, MOUSE_DIR "point.png");
|
||||
TRACE("Done.");
|
||||
|
||||
TRACE("Initializing variables...");
|
||||
|
@ -209,6 +209,7 @@ typedef struct YutaniGlobals {
|
||||
sprite_t mouse_sprite_resize_h;
|
||||
sprite_t mouse_sprite_resize_da;
|
||||
sprite_t mouse_sprite_resize_db;
|
||||
sprite_t mouse_sprite_point;
|
||||
int current_cursor;
|
||||
|
||||
/* Server backend communication identifier */
|
||||
|
@ -448,6 +448,7 @@ struct yutani_msg_clipboard {
|
||||
#define YUTANI_CURSOR_TYPE_RESIZE_HORIZONTAL 4
|
||||
#define YUTANI_CURSOR_TYPE_RESIZE_UP_DOWN 5
|
||||
#define YUTANI_CURSOR_TYPE_RESIZE_DOWN_UP 6
|
||||
#define YUTANI_CURSOR_TYPE_POINT 7
|
||||
|
||||
/*
|
||||
* YUTANI_WINDOW_FLAG
|
||||
|
BIN
base/usr/share/cursor/point.png
Normal file
BIN
base/usr/share/cursor/point.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Loading…
Reference in New Issue
Block a user