X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c03b8ea8cd8e78957b32dd8a5f7df732f0862fa1..13dfc24333f1ce5edf6c6e22d808d14a22111390:/samples/png/pngdemo.cpp diff --git a/samples/png/pngdemo.cpp b/samples/png/pngdemo.cpp index ed0c27b774..a08f20aeca 100644 --- a/samples/png/pngdemo.cpp +++ b/samples/png/pngdemo.cpp @@ -20,7 +20,7 @@ #pragma hdrstop #endif -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include #endif @@ -37,7 +37,7 @@ MyApp::MyApp() bool MyApp::OnInit(void) { -#ifdef __WINDOWS__ +#ifdef __WXMSW__ wxBitmap::AddHandler(new wxPNGFileHandler); #endif @@ -89,18 +89,18 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, cons canvas = NULL; } -void MyFrame::OnQuit(wxCommandEvent& event) +void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { Close(TRUE); } -void MyFrame::OnAbout(wxCommandEvent& event) +void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { (void)wxMessageBox("PNG demo\nJulian Smart (c) 1998", "About PNG Demo", wxOK); } -void MyFrame::OnLoadFile(wxCommandEvent& event) +void MyFrame::OnLoadFile(wxCommandEvent& WXUNUSED(event)) { // Show file selector. char *f = wxFileSelector("Open Image", NULL, NULL,"png", @@ -136,7 +136,7 @@ MyCanvas::~MyCanvas(void) } // Define the repainting behaviour -void MyCanvas::OnPaint(wxPaintEvent& event) +void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); dc.SetPen(wxRED_PEN);