From 3c912ac136d3ff5a48678a19fd7b649363850f7e Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 6 Oct 2024 18:02:00 +0200 Subject: [PATCH] gui: remove bitmapFromMem macro Not needed anymore and this is in wxWidgets upstream meanwhile. re #222 --- src/gui/bitmapFromMem.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gui/bitmapFromMem.h b/src/gui/bitmapFromMem.h index c0441c25..d4bde801 100644 --- a/src/gui/bitmapFromMem.h +++ b/src/gui/bitmapFromMem.h @@ -1,19 +1,10 @@ #ifndef BITMAPFROMMEM_H #define BITMAPFROMMEM_H -#include #include #include #include -#define bitmapFromMem(name) _GetBitmapFromMemory(name, sizeof(name)) - -inline wxBitmap _GetBitmapFromMemory(const unsigned char *data, int length) -{ - wxMemoryInputStream is(data, length); - return wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1); -} - #define bitmapBundleFromSVGResource(name) wxBitmapBundle::FromSVGFile(wxFileName(wxStandardPaths::Get().GetResourcesDir(), name, "svg").GetFullPath(), wxSize(24,24)) #endif