From 74e14f5c701c73f1367548e8e7d72ba6434830a2 Mon Sep 17 00:00:00 2001 From: Janus Date: Wed, 6 Feb 2013 22:07:21 +0000 Subject: [PATCH] Fix #8781. Display rotated images with alpha channel properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Axel Dörfler --- src/apps/showimage/ShowImageView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index d82d3c89f1..3f8899575f 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -1714,6 +1714,9 @@ ShowImageView::_DoImageOperation(ImageProcessor::operation op, bool quiet) _DeleteBitmap(); fBitmap = bm; + if (fBitmap->ColorSpace() == B_RGBA32) + fDisplayBitmap = compose_checker_background(fBitmap); + if (!quiet) { // remove selection _SetHasSelection(false);