mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
build: Fix issues with mac and linux builds
This commit is contained in:
parent
18ea1f22c5
commit
b3dea63e84
@ -642,6 +642,7 @@ enum ContextMenuEntries
|
||||
kContextMenuCopyTitleId,
|
||||
kContextMenuCopyTitleImage
|
||||
};
|
||||
|
||||
void wxGameList::OnContextMenu(wxContextMenuEvent& event)
|
||||
{
|
||||
auto& config = GetConfig();
|
||||
@ -1430,7 +1431,9 @@ void wxGameList::CreateShortcut(GameInfo2& gameInfo)
|
||||
iconPath = outIconDir / fmt::format("{:016x}.png", gameInfo.GetBaseTitleId());
|
||||
wxFileOutputStream pngFileStream(_pathToUtf8(iconPath.value()));
|
||||
|
||||
auto image = m_image_list->GetIcon(iconIndex).ConvertToImage();
|
||||
const auto icon = m_image_list_data[iconIndex];
|
||||
wxBitmap bitmap{icon.GetBitmap(wxDefaultSize)};
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
wxPNGHandler pngHandler;
|
||||
if (!pngHandler.SaveFile(&image, pngFileStream, false))
|
||||
{
|
||||
@ -1521,7 +1524,9 @@ void wxGameList::CreateShortcut(GameInfo2& gameInfo)
|
||||
iconPath = outIconDir / fmt::format("{:016x}.png", gameInfo.GetBaseTitleId());
|
||||
wxFileOutputStream pngFileStream(_pathToUtf8(iconPath.value()));
|
||||
|
||||
auto image = m_image_list->GetIcon(iconIndex).ConvertToImage();
|
||||
const auto icon = m_image_list_data[iconIndex];
|
||||
wxBitmap bitmap{icon.GetBitmap(wxDefaultSize)};
|
||||
wxImage image = bitmap.ConvertToImage();
|
||||
wxPNGHandler pngHandler;
|
||||
if (!pngHandler.SaveFile(&image, pngFileStream, false))
|
||||
{
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
#include <wx/listctrl.h>
|
||||
#include <wx/timer.h>
|
||||
#include <wx/panel.h>
|
||||
#include <wx/settings.h>
|
||||
#include <Cafe/TitleList/GameInfo.h>
|
||||
#include "util/helpers/Semaphore.h"
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#include "wxgui/components/wxInputDraw.h"
|
||||
|
||||
#include <wx/dcbuffer.h>
|
||||
#include <wx/settings.h>
|
||||
|
||||
wxInputDraw::wxInputDraw(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size)
|
||||
: wxWindow(parent, id, pos, size, 0, wxPanelNameStr)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user