342c4b588f2f069a2df2157ac166237a54277b3a.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From 342c4b588f2f069a2df2157ac166237a54277b3a Mon Sep 17 00:00:00 2001
  2. From: Ian McInerney <ian.s.mcinerney@ieee.org>
  3. Date: Fri, 8 Apr 2022 01:27:52 +0100
  4. Subject: [PATCH] Call the proper wxBitmap constructor for XPM data
  5. wxBitmap back to at least 3.0.0 did not have a constructor for an XPM
  6. image that took a size parameter, it would only take the XPM data
  7. itself.
  8. I don't know how this compiled until now, but it doesn't anymore when
  9. the size is included and built against wx 3.1.6 in Fedora.
  10. ---
  11. src/MixerBoard.cpp | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/src/MixerBoard.cpp b/src/MixerBoard.cpp
  14. index 54b5f146cc7..7fe81615474 100644
  15. --- a/src/MixerBoard.cpp
  16. +++ b/src/MixerBoard.cpp
  17. @@ -1307,7 +1307,7 @@ void MixerBoard::LoadMusicalInstruments()
  18. wxMemoryDC dc;
  19. for (const auto &data : table) {
  20. - auto bmp = std::make_unique<wxBitmap>(data.bitmap,24);
  21. + auto bmp = std::make_unique<wxBitmap>(data.bitmap);
  22. dc.SelectObject(*bmp);
  23. AColor::Bevel(dc, false, bev);
  24. mMusicalInstruments.push_back(std::make_unique<MusicalInstrument>(