From c3e44503cf39acc2b36a3dc4457f045a23ad3455 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 10 Feb 2002 16:09:49 +0000 Subject: [PATCH] fix for wxUniv/GTK scrolling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/dc.h | 9 ++++++++- include/wx/gtk1/dc.h | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/wx/gtk/dc.h b/include/wx/gtk/dc.h index 8c447ae426..bf3526f704 100644 --- a/include/wx/gtk/dc.h +++ b/include/wx/gtk/dc.h @@ -147,9 +147,16 @@ public: bool m_needComputeScaleX, m_needComputeScaleY; // not yet used - + private: DECLARE_ABSTRACT_CLASS(wxDC) }; +// this must be defined when wxDC::Blit() honours the DC origian and needed to +// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK +// 2.3.[23] +#ifndef wxHAS_WORKING_GTK_DC_BLIT + #define wxHAS_WORKING_GTK_DC_BLIT +#endif + #endif // __GTKDCH__ diff --git a/include/wx/gtk1/dc.h b/include/wx/gtk1/dc.h index 8c447ae426..bf3526f704 100644 --- a/include/wx/gtk1/dc.h +++ b/include/wx/gtk1/dc.h @@ -147,9 +147,16 @@ public: bool m_needComputeScaleX, m_needComputeScaleY; // not yet used - + private: DECLARE_ABSTRACT_CLASS(wxDC) }; +// this must be defined when wxDC::Blit() honours the DC origian and needed to +// allow wxUniv code in univ/winuniv.cpp to work with versions of wxGTK +// 2.3.[23] +#ifndef wxHAS_WORKING_GTK_DC_BLIT + #define wxHAS_WORKING_GTK_DC_BLIT +#endif + #endif // __GTKDCH__ -- 2.45.2