Skip to content

Commit 4ac6c23

Browse files
committed
Merge pull request #1233 from Zangetsu38/Zangetsu
Adding the icon on window GL and DX12
2 parents 286d296 + f27e77c commit 4ac6c23

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

rpcs3/Gui/D3DGSFrame.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ D3DGSFrame::D3DGSFrame()
99
: GSFrame(nullptr, "GSFrame[DirectX 12]")
1010
, m_frames(0)
1111
{
12+
SetIcon(wxICON(frame_icon));
1213
canvas = new wxWindow(this, wxID_ANY);
1314
canvas->SetSize(GetClientSize());
1415

rpcs3/Gui/GLGSFrame.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@
66
#include "D3DGSFrame.h"
77
#include "Utilities/Timer.h"
88

9+
#ifndef _WIN32
10+
#include "frame_icon.xpm"
11+
#endif
12+
913
GLGSFrame::GLGSFrame()
1014
: GSFrame(nullptr, "GSFrame[OpenGL]")
1115
, m_frames(0)
1216
{
17+
SetIcon(wxICON(frame_icon));
1318
canvas = new wxGLCanvas(this, wxID_ANY, NULL);
1419
canvas->SetSize(GetClientSize());
1520

rpcs3/Gui/MainFrame.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include <wx/dynlib.h>
2727
#include <wx/progdlg.h>
2828

29+
#ifndef _WIN32
30+
#include "frame_icon.xpm"
31+
#endif
32+
2933
BEGIN_EVENT_TABLE(MainFrame, FrameBase)
3034
EVT_CLOSE(MainFrame::OnQuit)
3135
END_EVENT_TABLE()
@@ -117,9 +121,7 @@ MainFrame::MainFrame()
117121
menu_help->Append(id_help_about, "&About...");
118122

119123
SetMenuBar(menubar);
120-
#ifdef _WIN32
121124
SetIcon(wxICON(frame_icon));
122-
#endif
123125

124126
// Panels
125127
m_log_frame = new LogFrame(this);

rpcs3/Gui/SettingsDialog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#pragma comment(lib, "iphlpapi.lib")
99
#else
10-
#include "frame_icon.xpm"
1110

1211
#include <arpa/inet.h>
1312
#include <sys/socket.h>

0 commit comments

Comments
 (0)