From 00659bcdbbb167596e6fd18e283a54819dd6fe91 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 6 Feb 2023 18:14:16 +0200 Subject: improve readability of VirtualDevice constructor (a) It is not obvious what DeviceFormat::DEFAULT means (b) There are two parameters (each with two states), but only really 2 possible overall states So (1) use more useful names (2) combine the two parameters into one enum Change-Id: Ic0595b39e032cc9e019b88326389d055b977da00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146589 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx index c1eb0ea90616..3e5139d32fb9 100644 --- a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx +++ b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx @@ -128,7 +128,7 @@ void InsertionIndicatorOverlay::Create ( // Create virtual devices for bitmap and mask whose bitmaps later be // combined to form the BitmapEx of the icon. ScopedVclPtrInstance pContent( - *mrSlideSorter.GetContentWindow()->GetOutDev(), DeviceFormat::DEFAULT, DeviceFormat::DEFAULT); + *mrSlideSorter.GetContentWindow()->GetOutDev(), DeviceFormat::WITH_ALPHA); pContent->SetOutputSizePixel(aIconSize); pContent->SetFillColor(); -- cgit