bitmapex.cxx (ff0f521c) bitmapex.cxx (0d6bca7a)
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

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

1239 static Color aLastColorTopLeft(COL_BLACK);
1240 static Color aLastColorTopRight(COL_BLACK);
1241 static Color aLastColorBottomRight(COL_BLACK);
1242 static Color aLastColorBottomLeft(COL_BLACK);
1243 static BitmapEx aLastResult;
1244
1245 if(aLastSize == rSize
1246 && nLastAlpha == nAlpha
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

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

1239 static Color aLastColorTopLeft(COL_BLACK);
1240 static Color aLastColorTopRight(COL_BLACK);
1241 static Color aLastColorBottomRight(COL_BLACK);
1242 static Color aLastColorBottomLeft(COL_BLACK);
1243 static BitmapEx aLastResult;
1244
1245 if(aLastSize == rSize
1246 && nLastAlpha == nAlpha
1247 && aLastColorTopLeft == aLastColorTopLeft
1248 && aLastColorTopRight == aLastColorTopRight
1249 && aLastColorBottomRight == aLastColorBottomRight
1250 && aLastColorBottomLeft == aLastColorBottomLeft)
1247 && aLastColorTopLeft == aColorTopLeft
1248 && aLastColorTopRight == aColorTopRight
1249 && aLastColorBottomRight == aColorBottomRight
1250 && aLastColorBottomLeft == aColorBottomLeft)
1251 {
1252 return aLastResult;
1253 }
1254
1255 aLastSize = rSize;
1256 nLastAlpha = nAlpha;
1251 {
1252 return aLastResult;
1253 }
1254
1255 aLastSize = rSize;
1256 nLastAlpha = nAlpha;
1257 aLastColorTopLeft = aLastColorTopLeft;
1258 aLastColorTopRight = aLastColorTopRight;
1259 aLastColorBottomRight = aLastColorBottomRight;
1260 aLastColorBottomLeft = aLastColorBottomLeft;
1257 aLastColorTopLeft = aColorTopLeft;
1258 aLastColorTopRight = aColorTopRight;
1259 aLastColorBottomRight = aColorBottomRight;
1260 aLastColorBottomLeft = aColorBottomLeft;
1261 aLastResult.Clear();
1262
1263 const long nW(rSize.Width());
1264 const long nH(rSize.Height());
1265
1266 if(nW && nH)
1267 {
1268 sal_uInt8 aEraseTrans(0xff);

--- 85 unchanged lines hidden ---
1261 aLastResult.Clear();
1262
1263 const long nW(rSize.Width());
1264 const long nH(rSize.Height());
1265
1266 if(nW && nH)
1267 {
1268 sal_uInt8 aEraseTrans(0xff);

--- 85 unchanged lines hidden ---