This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO41X by this push:
new 7e8066ab7c Another small change for Windows thumbnail creation
7e8066ab7c is described below
commit 7e8066ab7ce05f6e5cc79dfc39ea68d520b5a9ad
Author: mseidel <[email protected]>
AuthorDate: Mon Jul 31 16:34:32 2023 +0200
Another small change for Windows thumbnail creation
(cherry picked from commit ef262ace31d54a12a0f6837a99949f50be48d02e)
---
main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
b/main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
index 3b7c11c852..4e19863ab7 100644
--- a/main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
+++ b/main/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
@@ -389,7 +389,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::Extract(HBITMAP
*phBmpImage)
UINT offset = 1; // reserve a little border
space
Gdiplus::Rect canvas(0, 0, thumbnail_size_.cx,
thumbnail_size_.cy);
- Gdiplus::Rect canvas_thumbnail(offset, offset,
thumbnail_size_.cx - (2 * offset) - 0.5, thumbnail_size_.cy - (2 * offset) -
0.5);
+ Gdiplus::Rect canvas_thumbnail(offset, offset,
thumbnail_size_.cx - (2 * offset) - 1, thumbnail_size_.cy - (2 * offset) - 1);
Gdiplus::Rect scaledRect =
CalcScaledAspectRatio(
Gdiplus::Rect(0, 0,
thumbnail_png.GetWidth(), thumbnail_png.GetHeight()), canvas_thumbnail);
@@ -413,7 +413,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::Extract(HBITMAP
*phBmpImage)
HGDIOBJ hOldObj = SelectObject(memDC, hMemBmp);
Gdiplus::Graphics graphics(memDC);
- Gdiplus::Pen darkPen(Gdiplus::Color(255, 85,
85, 85), 1);
+ Gdiplus::Pen grayPen(Gdiplus::Color(255, 127,
127, 127), 1);
Gdiplus::SolidBrush
whiteBrush(Gdiplus::Color(255, 255, 255, 255));
graphics.FillRectangle(&whiteBrush, canvas);
@@ -422,7 +422,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::Extract(HBITMAP
*phBmpImage)
scaledRect.Y = (canvas.Height -
scaledRect.Height) / 2;
Gdiplus::Rect border_rect(scaledRect.X,
scaledRect.Y, scaledRect.Width, scaledRect.Height);
- graphics.DrawRectangle(&darkPen, border_rect);
+ graphics.DrawRectangle(&grayPen, border_rect);
scaledRect.X += 1;
scaledRect.Y += 1;