From 90c1e0ffd284f0383073a63c5b2b83208c4f49d9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 23 Jan 2015 15:15:29 -0500 Subject: allow use of null pointer as a valid cursor (implies using cursor of parent window) --- gtk2_ardour/mouse_cursors.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gtk2_ardour/mouse_cursors.cc') diff --git a/gtk2_ardour/mouse_cursors.cc b/gtk2_ardour/mouse_cursors.cc index d735ed6c64..93bba191f8 100644 --- a/gtk2_ardour/mouse_cursors.cc +++ b/gtk2_ardour/mouse_cursors.cc @@ -211,4 +211,11 @@ MouseCursors::set_cursor_set (const std::string& name) midi_resize = new Cursor (SIZING); midi_erase = new Cursor (DRAPED_BOX); up_down = new Cursor (SB_V_DOUBLE_ARROW); + + { + char pix[4] = { 0, 0, 0, 0 }; + RefPtr bits = Bitmap::create (pix, 2, 2); + Color c; + _invalid = new Cursor (bits, bits, c, c, 0, 0); + } } -- cgit v1.2.3