]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/image/image.cpp
Suppress warnings about double to int truncation in wxHTML code.
[wxWidgets.git] / samples / image / image.cpp
index 0fac64b19e91085aa29c7a611fa4ca06969b8bc6..d265524368e646686e575620226f8b8f86448c4b 100644 (file)
@@ -7,7 +7,7 @@
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998-2005 Robert Roebling
 //              (c) 2005-2009 Vadim Zeitlin
-// License:     wxWindows licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx/wx.h".
@@ -186,7 +186,7 @@ private:
         wxPaintDC dc(this);
 
         if ( GetMenuBar()->IsChecked(ID_PAINT_BG) )
-            ClearBackground();
+            dc.Clear();
 
         dc.SetUserScale(m_zoom, m_zoom);