Fix 1x1 symbols in debugger window + Load icons from headers on all platforms

- Fixed an issue where the toolbar icons for the debugger were resized to 1x1
- On Windows we now load the PNG UI icons from the header-embedded pngs (`resource/embedded`) instead of via `cemu.rc` to match behavior of other platforms
This commit is contained in:
Exzap 2022-09-18 15:53:10 +02:00 committed by GitHub
parent 867c0c5ca2
commit 5e968eff4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 44 deletions

View file

@ -29,9 +29,7 @@
#include "gui/input/settings/WiimoteControllerSettings.h"
#include "util/EventService.h"
#if BOOST_OS_LINUX
#include "resource/embedded/resources.h"
#endif
bool g_inputConfigWindowHasFocus = false;
@ -70,9 +68,9 @@ InputSettings2::InputSettings2(wxWindow* parent)
g_inputConfigWindowHasFocus = true;
m_connected = wxBITMAP_PNG(INPUT_CONNECTED);
m_disconnected = wxBITMAP_PNG(INPUT_DISCONNECTED);
m_low_battery = wxBITMAP_PNG(INPUT_LOW_BATTERY);
m_connected = wxBITMAP_PNG_FROM_DATA(INPUT_CONNECTED);
m_disconnected = wxBITMAP_PNG_FROM_DATA(INPUT_DISCONNECTED);
m_low_battery = wxBITMAP_PNG_FROM_DATA(INPUT_LOW_BATTERY);
auto* sizer = new wxBoxSizer(wxVERTICAL);