Fixed Windows performance regression introduced by ac2818bef95f134.
authorSamuel Rødal <samuel.rodal@nokia.com>
Thu, 1 Mar 2012 17:06:29 +0000 (18:06 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 14:55:44 +0000 (15:55 +0100)
commitad1b5495a2a437d21435a9c321c9abf612cd210e
tree42f4d4bf3669ce9727dc59ffc0eb7127e545e6be
parent6f3fe3fee31697d8e828b0f88e9111bfbbb62490
Fixed Windows performance regression introduced by ac2818bef95f134.

Only create a temporary DC if we're not on the main thread.

Task-number: QTBUG-24602
Change-Id: I36dad4c197c7cc1e019b19d42c81526fc8cfdcf4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/gui/kernel/qwidget_win.cpp