]> git.saurik.com Git - wxWidgets.git/commit
Run wxClientDC and wxMemoryDC tests too in the graphics benchmark.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:55 +0000 (20:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Feb 2013 20:46:55 +0000 (20:46 +0000)
commitb9fb3b0671541d252ffa0558ee80c23eb79e9f5e
tree06f936b8b9b48451828b81c02a6041a080e9b231
parent51f64663bf600d5b1d2f8d2643f722c8a062df62
Run wxClientDC and wxMemoryDC tests too in the graphics benchmark.

These tests were not run because OnPaint() handler was called before OnCreate()
and exited the main loop before the create event could be dispatched. Fix this
by just running everything from OnPaint(), like this we're sure to do it.

Also refactor the code a little to avoid duplicating the tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
tests/benchmarks/graphics.cpp