diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-23 15:15:29 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-23 15:19:36 -0500 |
commit | 90c1e0ffd284f0383073a63c5b2b83208c4f49d9 (patch) | |
tree | 594647be1eeb1fe60708d513d788bf823061b9c9 /gtk2_ardour/mouse_cursors.cc | |
parent | fe08965d91b9dd8a71604118e4d967d624e87f03 (diff) |
allow use of null pointer as a valid cursor (implies using cursor of parent window)
Diffstat (limited to 'gtk2_ardour/mouse_cursors.cc')
-rw-r--r-- | gtk2_ardour/mouse_cursors.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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<Bitmap> bits = Bitmap::create (pix, 2, 2); + Color c; + _invalid = new Cursor (bits, bits, c, c, 0, 0); + } } |