diff options
author | Daiwei Li <daiweili@suitabletech.com> | 2013-08-13 15:41:04 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-23 11:48:00 +0200 |
commit | 79570157e3f2d49a016a63fbf3a2e6e00da08fe9 (patch) | |
tree | 05f1cddf9221db1bdc1505f33a6b0224c3cfe869 /examples/tools/customtype | |
parent | 9194fc00a61379fa9ccd4b05c480f67b2fb739bc (diff) |
Return 1.0 for devicePixelRatio in QCocoaWindow if no valid window
If m_window is invalid, devicePixelRatio returns 0, which leads to
adverse effects in other parts of the code. For example,
qquickshadereffectsource.cpp will get stuck in an infinite loop
trying to multiply 0 by 2.
Task-number: QTBUG-32975
Change-Id: Ie3db86f1f459df018ebce67bcb4226f6cffe854e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'examples/tools/customtype')
0 files changed, 0 insertions, 0 deletions