xattrbmp.cxx (3e407bd8) | xattrbmp.cxx (1f69a0e2) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 115 unchanged lines hidden (view full) --- 124 { 125 BitmapReadAccess* pRead = aBitmap.AcquireReadAccess(); 126 127 if(pRead) 128 { 129 if(pRead->HasPalette() && 2 == pRead->GetPaletteEntryCount()) 130 { 131 const BitmapPalette& rPalette = pRead->GetPalette(); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 115 unchanged lines hidden (view full) --- 124 { 125 BitmapReadAccess* pRead = aBitmap.AcquireReadAccess(); 126 127 if(pRead) 128 { 129 if(pRead->HasPalette() && 2 == pRead->GetPaletteEntryCount()) 130 { 131 const BitmapPalette& rPalette = pRead->GetPalette(); |
132 133 o_rBack = rPalette[1]; 134 o_rFront = rPalette[0]; 135 | 132 133 // #123564# bachground and foregrund were exchanged; of course 134 // rPalette[0] is the background color 135 o_rFront = rPalette[1]; 136 o_rBack = rPalette[0]; 137 |
136 return true; 137 } 138 } 139 } 140 } 141 } 142 143 return false; --- 332 unchanged lines hidden --- | 138 return true; 139 } 140 } 141 } 142 } 143 } 144 145 return false; --- 332 unchanged lines hidden --- |