Commit 7f1ad7c7 authored by Gunnar Sletta's avatar Gunnar Sletta Committed by The Qt Project
Browse files

Fix transparent toplevels on Mac OS X again..


We're using QWindow::format() to decide opacity or not in
a few places, but this used to resolve to
QPlatformFormat::format() which would in turn return a default
format without alpha set. Instead, return the format requested
by the user.

Masked windows were always broken as converting a 32-bit image
to an Indexed8, doesn't give a grayscale image, but rather
a randomly spreadout set of indices based on the colortable
generated by the converToFormat function.

Task-number: QTBUG-28531
Change-Id: I537288f85c70b1e6194785b9ebcb5ea1f9581cee
Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
parent 9fdb9b26
No related merge requests found
Showing with 18 additions and 7 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment