mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DolphinWX: Stop using XPM images
Using the XPM format for images has become a maintenance problem because people don't know how to create them. This commit removes all XPM images and all C files that contain PNG images. DolphinWX now uses the PNGs in the Resources folder instead, just like DolphinQt and DolphinQt2 do.
This commit is contained in:
@ -8,11 +8,9 @@
|
||||
#include <wx/string.h>
|
||||
|
||||
class wxBitmap;
|
||||
class wxSize;
|
||||
class wxToolBar;
|
||||
|
||||
// A shortcut to access the bitmaps
|
||||
#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name))
|
||||
|
||||
namespace WxUtils
|
||||
{
|
||||
|
||||
@ -25,7 +23,9 @@ void Explore(const std::string& path);
|
||||
// Displays a wxMessageBox geared for errors
|
||||
void ShowErrorDialog(const wxString& error_msg);
|
||||
|
||||
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length);
|
||||
// Reads a PNG from the Resources folder
|
||||
wxBitmap LoadResourceBitmap(const std::string& name, bool allow_2x = false);
|
||||
wxBitmap LoadResourceBitmapPadded(const std::string& name, const wxSize& size);
|
||||
|
||||
// From a wxBitmap, creates the corresponding disabled version for toolbar buttons
|
||||
wxBitmap CreateDisabledButtonBitmap(const wxBitmap& original);
|
||||
|
Reference in New Issue
Block a user