winrt: Fix painting glitches when orientation changes
In addition to handling the pure rotation enforce a size change as well. This way content is redrawn for the correct orientation. It was done for Windows Phone 8.1 already, we only need to extent this to Windows 10. Task-number: QTBUG-50336 Change-Id: I6b3b964f44b631757ea856331c50f53c39ed9ec3 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>bb10
parent
0c51277bb8
commit
1929e48bba
|
|
@ -1201,7 +1201,7 @@ HRESULT QWinRTScreen::onOrientationChanged(IDisplayInformation *, IInspectable *
|
|||
if (d->orientation != newOrientation) {
|
||||
d->orientation = newOrientation;
|
||||
qCDebug(lcQpaWindows) << " New orientation:" << newOrientation;
|
||||
#ifdef Q_OS_WINPHONE
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP)
|
||||
onSizeChanged(nullptr, nullptr);
|
||||
#endif
|
||||
QWindowSystemInterface::handleScreenOrientationChange(screen(), d->orientation);
|
||||
|
|
|
|||
Loading…
Reference in New Issue