]> git.saurik.com Git - wxWidgets.git/commit - samples/html/test/test.cpp
wxHtmlWindow background drawing fixes for OS X and optimizations
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jun 2009 17:32:20 +0000 (17:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jun 2009 17:32:20 +0000 (17:32 +0000)
commit03a187ccae181e3736ec206d6d716846bfcb2007
treed79013d37f1faba66104aa10d1fd673de19bcca0
parent86ac84b8ce086e6bbda58f422d41f84268606e35
wxHtmlWindow background drawing fixes for OS X and optimizations

1. Avoid crashes under OS X due to attempts to copy window contents to the
   backing store bitmap: this doesn't work under OS X so avoid it by always
   painting the background from OnPaint() itself, while still generating the
   erase background events for compatibility.

2. Don't double buffer wxHtmlWindow drawing if the window is already double
   buffered.

3. Don't allocate backing store bitmap on the heap, this is useless as bitmaps
   are already pointer-lile -- so just use invalid bitmap instead of NULL
   bitmap pointer.

4. Update the html/test sample to show the effects of custom erase background
   handler in wxHtmlWindow (it overrides the background bitmap painting).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/html/htmlwin.h
samples/html/test/test.cpp
src/html/htmlwin.cpp