Simulator: Fix probe and tune cursors on OSX.

This commit is contained in:
Johannes Maibaum 2016-08-30 10:48:40 +02:00 committed by Maciej Suminski
parent 69e4231303
commit b87bac22c7
1 changed files with 4 additions and 0 deletions

View File

@ -107,7 +107,9 @@ public:
wxBitmap probe_mask_bitmap( (const char*) cursor_probe_mask, 32, 32 );
probe_bitmap.SetMask( new wxMask( probe_mask_bitmap ) );
probe_image = new wxImage( probe_bitmap.ConvertToImage() );
#ifdef __WXMSW__
probe_image->SetMaskColour( 255, 255, 255 );
#endif
probe_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, 0 );
probe_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_Y, 31 );
}
@ -125,7 +127,9 @@ public:
wxBitmap tune_mask_bitmap( (const char*) cursor_tune_mask, 32, 32 );
tune_bitmap.SetMask( new wxMask( tune_mask_bitmap ) );
tune_image = new wxImage( tune_bitmap.ConvertToImage() );
#ifdef __WXMSW__
tune_image->SetMaskColour( 255, 255, 255 );
#endif
tune_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, 0 );
tune_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_Y, 31 );
}