Adding the icon on window GL and DX12

This commit is contained in:
Zangetsu38 2015-09-27 00:36:44 +02:00
parent 286d2962c6
commit f27e77c7e0
4 changed files with 10 additions and 3 deletions

View file

@ -9,6 +9,7 @@ D3DGSFrame::D3DGSFrame()
: GSFrame(nullptr, "GSFrame[DirectX 12]") : GSFrame(nullptr, "GSFrame[DirectX 12]")
, m_frames(0) , m_frames(0)
{ {
SetIcon(wxICON(frame_icon));
canvas = new wxWindow(this, wxID_ANY); canvas = new wxWindow(this, wxID_ANY);
canvas->SetSize(GetClientSize()); canvas->SetSize(GetClientSize());

View file

@ -6,10 +6,15 @@
#include "D3DGSFrame.h" #include "D3DGSFrame.h"
#include "Utilities/Timer.h" #include "Utilities/Timer.h"
#ifndef _WIN32
#include "frame_icon.xpm"
#endif
GLGSFrame::GLGSFrame() GLGSFrame::GLGSFrame()
: GSFrame(nullptr, "GSFrame[OpenGL]") : GSFrame(nullptr, "GSFrame[OpenGL]")
, m_frames(0) , m_frames(0)
{ {
SetIcon(wxICON(frame_icon));
canvas = new wxGLCanvas(this, wxID_ANY, NULL); canvas = new wxGLCanvas(this, wxID_ANY, NULL);
canvas->SetSize(GetClientSize()); canvas->SetSize(GetClientSize());

View file

@ -26,6 +26,10 @@
#include <wx/dynlib.h> #include <wx/dynlib.h>
#include <wx/progdlg.h> #include <wx/progdlg.h>
#ifndef _WIN32
#include "frame_icon.xpm"
#endif
BEGIN_EVENT_TABLE(MainFrame, FrameBase) BEGIN_EVENT_TABLE(MainFrame, FrameBase)
EVT_CLOSE(MainFrame::OnQuit) EVT_CLOSE(MainFrame::OnQuit)
END_EVENT_TABLE() END_EVENT_TABLE()
@ -117,9 +121,7 @@ MainFrame::MainFrame()
menu_help->Append(id_help_about, "&About..."); menu_help->Append(id_help_about, "&About...");
SetMenuBar(menubar); SetMenuBar(menubar);
#ifdef _WIN32
SetIcon(wxICON(frame_icon)); SetIcon(wxICON(frame_icon));
#endif
// Panels // Panels
m_log_frame = new LogFrame(this); m_log_frame = new LogFrame(this);

View file

@ -7,7 +7,6 @@
#pragma comment(lib, "iphlpapi.lib") #pragma comment(lib, "iphlpapi.lib")
#else #else
#include "frame_icon.xpm"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/socket.h> #include <sys/socket.h>