X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..044388d13fb138fb202f1dd9afab511efd68ad5f:/samples/splash/splash.cpp diff --git a/samples/splash/splash.cpp b/samples/splash/splash.cpp index de0654b1dc..2df96524b3 100644 --- a/samples/splash/splash.cpp +++ b/samples/splash/splash.cpp @@ -4,7 +4,6 @@ // Author: Wlodzimierz ABX Skiba // Modified by: // Created: 04/08/2004 -// RCS-ID: $Id$ // Copyright: (c) Wlodzimierz Skiba // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -40,7 +39,7 @@ // the application icon (under Windows and OS/2 it is in resources and even // though we could still include the XPM here it would be unused) -#if !defined(__WXMSW__) && !defined(__WXPM__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -137,7 +136,7 @@ bool MyApp::OnInit() bitmap = wxBitmap(mobile_xpm); bool ok = frame->m_isPda - ? bitmap.Ok() + ? bitmap.IsOk() : bitmap.LoadFile(wxT("splash.png"), wxBITMAP_TYPE_PNG); if (ok) @@ -182,7 +181,7 @@ MyFrame::MyFrame(const wxString& title) // the "About" item should be in the help menu wxMenu *helpMenu = new wxMenu; - helpMenu->Append(wxID_ABOUT, wxT("&About...\tF1"), wxT("Show about frame")); + helpMenu->Append(wxID_ABOUT, wxT("&About\tF1"), wxT("Show about frame")); menuFile->Append(wxID_EXIT, wxT("E&xit\tAlt-X"), wxT("Quit this program")); @@ -218,7 +217,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) if (m_isPda) bitmap = wxBitmap(mobile_xpm); bool ok = m_isPda - ? bitmap.Ok() + ? bitmap.IsOk() : bitmap.LoadFile(wxT("splash.png"), wxBITMAP_TYPE_PNG); if (ok)