]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/drawing/drawing.cpp
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / samples / drawing / drawing.cpp
index d13547939514f4375ad340c27f918fb8b93d7f82..61df8bf9130b82bc84f418006ffc7acf262c8bd1 100644 (file)
@@ -515,7 +515,7 @@ void MyCanvas::DrawDefault(wxDC& dc)
     // mark the origin
     dc.DrawCircle(0, 0, 10);
 
-#if !wxMAC_USE_CORE_GRAPHICS
+#if !defined(wxMAC_USE_CORE_GRAPHICS) || !wxMAC_USE_CORE_GRAPHICS
     // GetPixel and FloodFill not supported by Mac OS X CoreGraphics
     // (FloodFill uses Blit from a non-wxMemoryDC)
     //flood fill using brush, starting at 1,1 and replacing whatever colour we find there
@@ -1143,6 +1143,9 @@ void MyCanvas::OnPaint(wxPaintEvent &WXUNUSED(event))
         case Show_Gradient:
             DrawGradients(dc);
             break;
+
+        default:
+            break;
     }
 }