diff options
author | Neil <nyamatongwe@gmail.com> | 2021-11-22 13:04:04 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-11-22 13:04:04 +1100 |
commit | 6e63cf025c291ad9a36c634b9cad4a1b48d3aeef (patch) | |
tree | 7cd5f1339e0db569680500c15291c6547184d3e7 | |
parent | 0ef4d6169062ed872c11c176af07b366b636c45e (diff) | |
download | scintilla-mirror-6e63cf025c291ad9a36c634b9cad4a1b48d3aeef.tar.gz |
Make const where correct.
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 71c23eee7..bdd2c0585 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1905,7 +1905,7 @@ void SurfaceD2D::Copy(PRectangle rc, Point from, Surface &surfaceSource) { const HRESULT hr = surfOther.GetBitmap(&pBitmap); if (SUCCEEDED(hr) && pBitmap) { const D2D1_RECT_F rcDestination = RectangleFromPRectangle(rc); - D2D1_RECT_F rcSource = RectangleFromPRectangle(PRectangle( + const D2D1_RECT_F rcSource = RectangleFromPRectangle(PRectangle( from.x, from.y, from.x + rc.Width(), from.y + rc.Height())); pRenderTarget->DrawBitmap(pBitmap, rcDestination, 1.0f, D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR, rcSource); @@ -2336,7 +2336,7 @@ void SurfaceD2D::DrawTextCommon(PRectangle rc, const Font *font_, XYPOSITION yba static_cast<FLOAT>(rc.Height()), &pTextLayout); if (SUCCEEDED(hr)) { - D2D1_POINT_2F origin = DPointFromPoint(Point(rc.left, ybase-yAscent)); + const D2D1_POINT_2F origin = DPointFromPoint(Point(rc.left, ybase-yAscent)); pRenderTarget->DrawTextLayout(origin, pTextLayout, pBrush, d2dDrawTextOptions); ReleaseUnknown(pTextLayout); } |