drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx          |   26 
+++++-----
 include/drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx |    2 
 include/drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx  |    2 
 3 files changed, 15 insertions(+), 15 deletions(-)

New commits:
commit 0d6dcc749f2dafe6a66f43524bb0bfe7491546ad
Author:     Andrea Gelmini <andrea.gelm...@gelma.net>
AuthorDate: Thu Dec 22 09:40:00 2022 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Thu Jan 5 18:07:41 2023 +0000

    Fix typos
    
    Change-Id: I49ca0e4e05420a4992acc348a3dc6e3533f4d30e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144618
    Tested-by: Julien Nabet <serval2...@yahoo.fr>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx 
b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx
old mode 100644
new mode 100755
index 5de189f16244..2ed7ea526959
--- a/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/d2dpixelprocessor2d.cxx
@@ -115,8 +115,8 @@ public:
             // interestingly this ID2D1DCRenderTarget already works and can 
hold
             // created ID2D1Bitmap(s) in RenderTarget-specific form, *without*
             // any call to "BindDC", thus *without* the need of a real HDC - 
nice :-)
-            // When that would be needed, Application::GetDefaultDevice() 
would do
-            // to have a HDC that is valid during LO livetime.
+            // When that would be needed, Application::GetDefaultDevice() 
would need
+            // to have a HDC that is valid during LO's lifetime.
 
             if (!SUCCEEDED(hr))
                 
const_cast<ID2D1GlobalRenderTargetProvider*>(this)->mpID2D1DCRenderTarget = 
nullptr;
@@ -455,7 +455,7 @@ ID2D1Bitmap* createB2DBitmap(const BitmapEx& rBitmapEx)
 
     // use GlobalRenderTraget to allow usage combined with
     // the Direct2D CreateSharedBitmap-mechanism. This is needed
-    // since ID2D1Bitmap is a ID2D1RenderTarget-dependent ressource
+    // since ID2D1Bitmap is a ID2D1RenderTarget-dependent resource
     // and thus - in principle - would have to be re-created for
     // *each* new ID2D1RenderTarget, that means for *each* new
     // target HDC, resp. OutputDevice
@@ -545,14 +545,14 @@ ID2D1Bitmap* getOrCreateB2DBitmap(ID2D1RenderTarget& rRT, 
const BitmapEx& rBitma
 }
 
 // This is a simple local derivation of D2DPixelProcessor2D to be used
-// when sub-content needs to be rendered to pixls. Hand over the adapted
+// when sub-content needs to be rendered to pixels. Hand over the adapted
 // ViewInformation2D, a pixel size and the parent RenderTarget. It will
 // locally create and use a ID2D1BitmapRenderTarget to render the stuff
 // (you need to call process() with the primitives to be painted of
-// course). Then use the local helper getID2D1Bitmap() to acces the
+// course). Then use the local helper getID2D1Bitmap() to access the
 // ID2D1Bitmap which was the target of that operation.
 // The class does not need to call mpBitmapRenderTarget->Release() since
-// mpRT of parent is set to it and that calls Release() already itn it's
+// mpRT of parent is set to it and that calls Release() already in its
 // destructor, so no destructor needed here.
 class D2DBitmapPixelProcessor2D final : public 
drawinglayer::processor2d::D2DPixelProcessor2D
 {
@@ -900,7 +900,7 @@ ID2D1Bitmap* D2DPixelProcessor2D::implCreateAlpha_Direct(
     const basegfx::B2DRange& rVisibleRange)
 {
     // Try if we can use ID2D1DeviceContext/d2d1_1 by querying for interface.
-    // ony then can we use ID2D1Effect/CLSID_D2D1LuminanceToAlpha and it makes
+    // Only then can we use ID2D1Effect/CLSID_D2D1LuminanceToAlpha and it makes
     // sense to try to do it this way in this implementation
     ID2D1DeviceContext* pID2D1DeviceContext(nullptr);
     getRenderTarget().QueryInterface(__uuidof(ID2D1DeviceContext),
@@ -925,7 +925,7 @@ ID2D1Bitmap* D2DPixelProcessor2D::implCreateAlpha_Direct(
     // of it when true by setting used colors to their LuminanceToAlpha values,
     // so another necessity similar and besides a possible ColorModifierStack.
     // That worked okay, since for now this is not complex to do since only
-    // gradients (decomnposed to Polygons) get rendered for now when a
+    // gradients (decomposed to Polygons) get rendered for now when a
     // TransparencePrimitive2D is processed, so it would work as long as only
     // polygons are treated correctly.
     // But the definition of TransparencePrimitive2D is (see include\
@@ -1006,7 +1006,7 @@ ID2D1Bitmap* D2DPixelProcessor2D::implCreateAlpha_Direct(
 
         if (pID2D1DeviceContext)
         {
-            // crete the effect
+            // create the effect
             ID2D1Effect* pLuminanceToAlpha(nullptr);
             pID2D1DeviceContext->CreateEffect(CLSID_D2D1LuminanceToAlpha, 
&pLuminanceToAlpha);
 
@@ -1149,8 +1149,8 @@ void D2DPixelProcessor2D::processTransparencePrimitive2D(
         return;
     }
 
-    // try to create directly, this needs the curent mpRT to be a 
ID2D1DeviceContext/d2d1_1
-    // what is not guarenteed but usually works for more modern windows (after 
7)
+    // try to create directly, this needs the current mpRT to be a 
ID2D1DeviceContext/d2d1_1
+    // what is not guaranteed but usually works for more modern windows (after 
7)
     ID2D1Bitmap* pAlphaBitmap(implCreateAlpha_Direct(rTransCandidate, 
aVisibleRange));
     D2D1_MATRIX_3X2_F aMaskScale(D2D1::Matrix3x2F::Identity());
 
@@ -1428,7 +1428,7 @@ void D2DPixelProcessor2D::processMarkerArrayPrimitive2D(
 void D2DPixelProcessor2D::processBackgroundColorPrimitive2D(
     const primitive2d::BackgroundColorPrimitive2D& rBackgroundColorCandidate)
 {
-    // check for alloed range [0.0 .. 1.0[
+    // check for allowed range [0.0 .. 1.0[
     if (rBackgroundColorCandidate.getTransparency() < 0.0
         || rBackgroundColorCandidate.getTransparency() >= 1.0)
         return;
@@ -1605,7 +1605,7 @@ void D2DPixelProcessor2D::processPolygonStrokePrimitive2D(
                         //     that a miter prolongation would have at that 
angle, so use some trigonometry.
                         //     Unfortunately there is also some'precision' 
problem (probably), so I had to
                         //     experimentally come to a correction value 
around 0.9925. Since that seems to
-                        //     be no obvoius numerical value involved somehow 
(and as long as I find no other
+                        //     be no obvious numerical value involved somehow 
(and as long as I find no other
                         //     explanation) I will have to use that.
                         // With both done I can use Direct2D for Miter 
completely - what is good for speed.
                         aLineJoin = D2D1_LINE_JOIN_MITER_OR_BEVEL;
diff --git a/include/drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx 
b/include/drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx
index 29737786df1c..0bb67c3d0c7a 100644
--- a/include/drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx
+++ b/include/drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx
@@ -66,7 +66,7 @@ public:
 
     Tooling: This primitive defines a simple rectangle. It is
     sometimes useful for simpler tasks and decomposes to a
-    more gereralized PolyPolygonColorPrimitive2D (see above)
+    more generalized PolyPolygonColorPrimitive2D (see above)
 */
 class DRAWINGLAYER_DLLPUBLIC FilledRectanglePrimitive2D final : public 
BasePrimitive2D
 {
diff --git a/include/drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx 
b/include/drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx
index 9e57ab31f6a4..bcee8a5ec0d4 100644
--- a/include/drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx
+++ b/include/drawinglayer/primitive2d/PolygonHairlinePrimitive2D.hxx
@@ -110,7 +110,7 @@ public:
 
     Tooling: This primitive defines a simple rectangle. It is
     sometimes useful for simpler tasks and decomposes to a
-    more gereralized PolygonHairlinePrimitive2D (see above)
+    more generalized PolygonHairlinePrimitive2D (see above)
 */
 class DRAWINGLAYER_DLLPUBLIC LineRectanglePrimitive2D final : public 
BasePrimitive2D
 {

Reply via email to