ctrlbox.cxx (a68b38df) ctrlbox.cxx (ff0f521c)
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

--- 218 unchanged lines hidden (view full) ---

227 rUDEvt.GetDevice()->DrawRect(aRect);
228 rUDEvt.GetDevice()->Pop();
229
230 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
231 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
232
233 if(nEdgeBlendingPercent)
234 {
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

--- 218 unchanged lines hidden (view full) ---

227 rUDEvt.GetDevice()->DrawRect(aRect);
228 rUDEvt.GetDevice()->Pop();
229
230 const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
231 const sal_uInt16 nEdgeBlendingPercent(GetEdgeBlending() ? rStyleSettings.GetEdgeBlending() : 0);
232
233 if(nEdgeBlendingPercent)
234 {
235 Bitmap aBitmap(rUDEvt.GetDevice()->GetBitmap(aRect.TopLeft(), aRect.GetSize()));
235 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
236 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
237 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
238 const BitmapEx aBlendFrame(createBlendFrame(aRect.GetSize(), nAlpha, rTopLeft, rBottomRight));
236
239
237 if(!aBitmap.IsEmpty())
240 if(!aBlendFrame.IsEmpty())
238 {
241 {
239 const Color& rTopLeft(rStyleSettings.GetEdgeBlendingTopLeftColor());
240 const Color& rBottomRight(rStyleSettings.GetEdgeBlendingBottomRightColor());
241 const sal_uInt8 nAlpha((nEdgeBlendingPercent * 255) / 100);
242
243 aBitmap.DrawBlendFrame(nAlpha, rTopLeft, rBottomRight);
244 rUDEvt.GetDevice()->DrawBitmap(aRect.TopLeft(), aBitmap);
242 rUDEvt.GetDevice()->DrawBitmapEx(aRect.TopLeft(), aBlendFrame);
245 }
246 }
247
248 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_False );
249 }
250 else
251 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_True );
252 }

--- 1272 unchanged lines hidden ---
243 }
244 }
245
246 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_False );
247 }
248 else
249 ListBox::DrawEntry( rUDEvt, sal_False, sal_True, sal_True );
250 }

--- 1272 unchanged lines hidden ---