From: Vadim Zeitlin Date: Tue, 26 Apr 2011 22:57:45 +0000 (+0000) Subject: Change VIEWPORT_EXTENT constant in wxMSW wxDC code to be a power of two. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dfc2e4961e425f40d39849cf3546f70e07c9239d Change VIEWPORT_EXTENT constant in wxMSW wxDC code to be a power of two. Notice that this commit doesn't really change anything, in particular it doesn't correct zooming for zoom factors that are power of 2 (which was broken before as ticket #11669 showed), this was already done by the previous commit. This one simply makes multiplying by VIEWPORT_EXTENT a tiny bit more efficient. See #9554. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 17ffaae9bf..e0e1ec6523 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -82,7 +82,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxMSWDCImpl, wxDCImpl) // constants // --------------------------------------------------------------------------- -static const int VIEWPORT_EXTENT = 1000; +static const int VIEWPORT_EXTENT = 1024; // ROPs which don't have standard names (see "Ternary Raster Operations" in the // MSDN docs for how this and other numbers in wxDC::Blit() are obtained)