#include "wxpoem.h"
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXX11__)
#include "corner1.xpm"
#include "corner2.xpm"
#include "corner3.xpm"
Corner3 = new wxIcon("icon_3");
Corner4 = new wxIcon("icon_4");
#endif
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXX11__)
Corner1 = new wxIcon( corner1_xpm );
Corner2 = new wxIcon( corner2_xpm );
Corner3 = new wxIcon( corner3_xpm );
delete Corner3;
delete Corner4;
+ // Causes crash since they're deleted by the global font list
+#if 0
delete NormalFont;
delete BoldFont;
delete ItalicFont;
+#endif
+
delete[] poem_buffer;
if (search_string)
delete[] search_string;
int xx, yy;
TheMainWindow->GetClientSize(&xx, &yy);
+ dc.DrawBitmap(* backingBitmap, 0, 0);
+#if 0
wxMemoryDC memDC;
memDC.SelectObject(* backingBitmap);
dc.Blit(0, 0, backingBitmap->GetWidth(), backingBitmap->GetHeight(), &memDC, 0, 0);
+#endif
}
}