]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/drawing/drawing.cpp
added missing wxSTDs
[wxWidgets.git] / samples / drawing / drawing.cpp
index 61fed0ce1ed109db00643533bc707bcb77be1642..9fdf5136d31557589967891a7ded07b3fbc7ced2 100644 (file)
@@ -43,7 +43,7 @@
 // ----------------------------------------------------------------------------
 
 // the application icon
-#if defined(__WXGTK__) || defined(__WXMOTIF__)
+#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
     #include "mondrian.xpm"
 #endif
 
@@ -824,7 +824,9 @@ void MyCanvas::DrawText(wxDC& dc)
     dc.DrawText( "This is text", 110, 10 );
     dc.DrawRotatedText( "That is text", 20, 10, -45 );
 
-    dc.SetFont( *wxNORMAL_FONT );
+    // use wxSWISS_FONT and not wxNORMAL_FONT as the latter can't be rotated
+    // under Win9x (it is not TrueType)
+    dc.SetFont( *wxSWISS_FONT );
 
     wxString text;
     dc.SetBackgroundMode(wxTRANSPARENT);