]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxRTTI macros to buffered DCs.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 15 Oct 2006 15:45:13 +0000 (15:45 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 15 Oct 2006 15:45:13 +0000 (15:45 +0000)
  Fix a signed/unsigned warning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dcbuffer.h
src/common/dcbase.cpp
src/common/stream.cpp

index 6916ff7eefdf2b3775b09285cf82248163ca632c..85f5f6cef4696d98c8e8342b06dcc6a21c0b2905 100644 (file)
@@ -37,7 +37,7 @@
 // does not prepare the window DC
 #define wxBUFFER_CLIENT_AREA        0x02
 
-class wxBufferedDC : public wxMemoryDC
+class WXDLLEXPORT wxBufferedDC : public wxMemoryDC
 {
 public:
     // Default ctor, must subsequently call Init for two stage construction.
@@ -148,6 +148,7 @@ private:
     // the buffering style
     int m_style;
 
+    DECLARE_DYNAMIC_CLASS(wxBufferedDC)
     DECLARE_NO_COPY_CLASS(wxBufferedDC)
 };
 
@@ -158,7 +159,7 @@ private:
 
 // Creates a double buffered wxPaintDC, optionally allowing the
 // user to specify their own buffer to use.
-class wxBufferedPaintDC : public wxBufferedDC
+class WXDLLEXPORT wxBufferedPaintDC : public wxBufferedDC
 {
 public:
     // If no bitmap is supplied by the user, a temporary one will be created.
@@ -198,6 +199,7 @@ public:
 private:
     wxPaintDC m_paintdc;
 
+    DECLARE_ABSTRACT_CLASS(wxBufferedPaintDC)
     DECLARE_NO_COPY_CLASS(wxBufferedPaintDC)
 };
 
index 980db2b7b34a57ac6439a5cf2d45c5f69064f9d8..84ac42aa3c6ec51975dfad184a1cae4130d60074 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include "wx/dc.h"
+#include "wx/dcbuffer.h" // for IMPLEMENT_DYNAMIC_CLASS
 
 #ifndef WX_PRECOMP
     #include "wx/math.h"
@@ -38,6 +39,9 @@ IMPLEMENT_ABSTRACT_CLASS(wxDCBase, wxObject)
 // implementation
 // ============================================================================
 
+IMPLEMENT_DYNAMIC_CLASS(wxBufferedDC, wxMemoryDC)
+IMPLEMENT_ABSTRACT_CLASS(wxBufferedPaintDC, wxBufferedDC)
+
 #if WXWIN_COMPATIBILITY_2_6
 void wxDCBase::BeginDrawing()
 {
index a0ce91c79df019c4ba89c9086c51a95ff219403f..18bcc6f518478364b5e9b22848d3fd3aa71fcfdc 100644 (file)
@@ -670,7 +670,7 @@ wxStreamBase::~wxStreamBase()
 size_t wxStreamBase::GetSize() const
 {
     wxFileOffset length = GetLength();
-    if ( length == wxInvalidOffset )
+    if ( length == (wxFileOffset)wxInvalidOffset )
         return 0;
 
     const size_t len = wx_truncate_cast(size_t, length);