X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/457814b5aa2ee5c83abc65a6aee2a3ebcb1af34f..14b72bf5a6b575f2be880eadc3e7f0131afe889a:/samples/memcheck/memcheck.cpp diff --git a/samples/memcheck/memcheck.cpp b/samples/memcheck/memcheck.cpp index 48ef18ffd8..026f8d0532 100644 --- a/samples/memcheck/memcheck.cpp +++ b/samples/memcheck/memcheck.cpp @@ -27,11 +27,15 @@ #include "wx/date.h" -#if !DEBUG -#error You must set DEBUG to 1 on the 'make' command line or make.env. +#ifdef __WXGTK__ +#include "mondrian.xpm" #endif -#define new WXDEBUG_NEW +#if !WXDEBUG +#error You must set WXDEBUG to 1 on the 'make' command line (MSW) or with configure (GTK) +#endif + +// #define new WXDEBUG_NEW // Define a new application type class MyApp: public wxApp @@ -59,9 +63,7 @@ bool MyApp::OnInit(void) // Give it an icon #ifdef wx_msw frame->SetIcon(wxIcon("mondrian")); -#endif -#ifdef wx_x - frame->SetIcon(wxIcon("mondrian.xbm")); + frame->SetIcon(wxIcon(mondrian_xpm)); #endif // Make a menubar @@ -80,7 +82,7 @@ bool MyApp::OnInit(void) // Show the frame frame->Show(TRUE); -// wxDebugContext::SetCheckpoint(); + wxDebugContext::SetCheckpoint(); wxDebugContext::SetFile("debug.log"); wxString *thing = new wxString; // WXDEBUG_NEW wxString;