outdev6.cxx (6dd94783) outdev6.cxx (b2577150)
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

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

1250
1251// -----------------------------------------------------------------------
1252
1253void OutputDevice::DrawCheckered(const Point& rPos, const Size& rSize, sal_uInt32 nLen, Color aStart, Color aEnd)
1254{
1255 const sal_uInt32 nMaxX(rPos.X() + rSize.Width());
1256 const sal_uInt32 nMaxY(rPos.Y() + rSize.Height());
1257
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

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

1250
1251// -----------------------------------------------------------------------
1252
1253void OutputDevice::DrawCheckered(const Point& rPos, const Size& rSize, sal_uInt32 nLen, Color aStart, Color aEnd)
1254{
1255 const sal_uInt32 nMaxX(rPos.X() + rSize.Width());
1256 const sal_uInt32 nMaxY(rPos.Y() + rSize.Height());
1257
1258 Push();
1258 Push(PUSH_LINECOLOR|PUSH_FILLCOLOR);
1259 SetLineColor();
1260
1261 for(sal_uInt32 x(0), nX(rPos.X()); nX < nMaxX; x++, nX += nLen)
1262 {
1263 const sal_uInt32 nRight(std::min(nMaxX, nX + nLen));
1264
1265 for(sal_uInt32 y(0), nY(rPos.Y()); nY < nMaxY; y++, nY += nLen)
1266 {

--- 12 unchanged lines hidden ---
1259 SetLineColor();
1260
1261 for(sal_uInt32 x(0), nX(rPos.X()); nX < nMaxX; x++, nX += nLen)
1262 {
1263 const sal_uInt32 nRight(std::min(nMaxX, nX + nLen));
1264
1265 for(sal_uInt32 y(0), nY(rPos.Y()); nY < nMaxY; y++, nY += nLen)
1266 {

--- 12 unchanged lines hidden ---