From 525b22d63dc2273a064613e1ce45da6a58f7a335 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Tue, 7 Jul 2015 19:51:48 -0400 Subject: [PATCH] Let MakeCursor be called elsewhere than from TrackPanel.cpp --- images/Cursors.h | 2 ++ src/TrackPanel.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/images/Cursors.h b/images/Cursors.h index 83da26ff3..cb7d51f83 100644 --- a/images/Cursors.h +++ b/images/Cursors.h @@ -56,3 +56,5 @@ #endif #endif + +wxCursor * MakeCursor(int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY); diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index fde42b8a6..fa7ac3e72 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -402,7 +402,8 @@ BEGIN_EVENT_TABLE(TrackPanel, wxWindow) END_EVENT_TABLE() /// Makes a cursor from an XPM, uses CursorId as a fallback. -static wxCursor * MakeCursor( int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY ) +/// TODO: Move this function to some other source file for reuse elsewhere. +wxCursor * MakeCursor( int WXUNUSED(CursorId), const char * pXpm[36], int HotX, int HotY ) { wxCursor * pCursor;