]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
Small speed up to fonts and support for scaling.
[wxWidgets.git] / include / wx / msw / private.h
index f4cb8b3908400e11fa2cc34149d1d0498f3a1e1e..390a7007b973206fd9497eda4659ecb9919cd9d9 100644 (file)
@@ -356,7 +356,7 @@ class MemoryHDC
 {
 public:
     MemoryHDC() { m_hdc = ::CreateCompatibleDC(NULL); }
-   ~MemoryHDC() { ::DeleteObject(m_hdc);              }
+   ~MemoryHDC() { ::DeleteDC(m_hdc);                  }
 
     operator HDC() const { return m_hdc; }