663 Commits
Author SHA1 Message Date
Andrea Gelmini b0483fcff5 Fix typos
Change-Id: I2f0e2e45af1aa91cb5d06271e2c6893e5e2c42f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210079
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 14:11:46 +02:00
Andrea Gelmini 83f294efde Fix typos
Change-Id: I46e05dc1921a9fbefffae1e06a3214d684f19d74

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209750
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:07:27 +02:00
Khaled Hosny 6e6bf902f0 vcl: Rename the Freetype* font code to Generic*
We no longer use FreeType, and this code is also not platform-specific,
so Generic seems like a good fit.

    FreetypeFontFace       -> GenericFontFace
    FreetypeFont           -> GenericFont
    FreetypeFontList       -> GenericFontList
    FreeTypeTextRenderImpl -> GenericTextRenderImpl

Change-Id: I31547a25167684985fed8b21fdfba61371352528
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208578
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-24 23:44:46 +02:00
Khaled Hosny ea5d20690d vcl: Move FreetypeFontFace into its own file
Move FreetypeFontFile and FreetypeFontFace out of
freetype_glyphcache.hxx/.cxx into FreetypeFontFace.hxx/.cxx.

Change-Id: I4eccfa0759340d1da33267bc5e360c1626678de4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208530
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-24 11:28:55 +02:00
Khaled Hosny b09366a8cf vcl: Merge FreetypeFontInstance and FreetypeFont
FreetypeFontInstance was a LogicalFontInstance whose only job was to own
a FreetypeFont and forward to it, while FreetypeFont held a reference
back to the instance to reach the font select pattern. Make FreetypeFont
the LogicalFontInstance, similar to CoreTextFont and QtFont already are.

Change-Id: If07df1a2d706f27b7364457f6288e8db372b7769
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208524
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-24 02:58:19 +02:00
Khaled Hosny c88d615db8 vcl: Consolidate the Linux font code under vcl/unx/generic/font
The FreeType/fontconfig font backend was spread over three directories
mostly for historical reasons. Lets clean this up and consolidate it
under one directory.

helper.cxx holds the psp path helpers, so it goes to print/ next to the
rest of the printing code.

Change-Id: I67d20e3e4bdf71d978a79e672bb31d3dd1460595
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208522
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-24 02:58:02 +02:00
Xisco Fauli 208d055212 skia: turn ForceSkiaRaster into ForceSkiaGPU
so unless ForceSkiaGPU is specifically enabled by the user,
hardware accelatarion will be disabled by default.
Some discussion on the topic can be found here
https://gerrit.libreoffice.org/c/core/+/208116/comments/273234df_69198d70
and here
https://gerrit.libreoffice.org/c/core/+/208116/comments/372732df_f989e4f3

In libreoffice-26-2 branch, Vulkan has been put under experimental mode
so it doesn't touch translations,
see https://gerrit.libreoffice.org/c/core/+/208134

Change-Id: Ib7a39d269f24b5ef82752edb238944d3d453153c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208148
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-18 13:00:28 +02:00
Patrick Luby ef2aa884a8 Revert "tdf#172399 skip redrawing of old surface during live resize"
This reverts commit 2a7e219bea.

Reason for revert: I was finally able to reproduce the bug and this patch didn't fix the bug. Apparently, the bug only occurs when the notebook bar is used with Skia/Metal. Why the notebook bar keeps moving around with Skia/Metal but not Skia/Raster is now the mystery that needs to be solved.

Change-Id: I36dbb296d1737f6f7d24b0b9a478a4614ef4db5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208131
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-07-15 14:47:58 +02:00
Patrick Luby 2a7e219bea tdf#172399 skip redrawing of old surface during live resize
During live resize on macOS, there is a flood of resize
events in quick succession so not only are most of the
newly created surfaces short lived, but preserving and
redrawing the original content drawn to the old surface
is unnecessary since AquaSalFrame::SendPaintEvent() is
is called after each resize event.

Change-Id: I60934d023a1303ffb898815a7787a30b1a163fba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208130
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2026-07-15 05:40:52 +02:00
Khaled Hosny aa1e992c23 vcl: Scale stretched fonts relative to the height on Windows
The font width used to mean the average character width on Windows,
like GDI’s LOGFONT lfWidth. This complicates things cross-platform, and
also DirectWrite does not expose such info.

Drop the whole average character width nonsense and align Windows to
other platforms, keeping the already existing cross-platforms
workarounds for EMF/WMF that are now applied also to Windows.

Change-Id: I750d42ad090bb9d0f776e80609b7a67b8ac38aac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207990
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-07-14 00:16:49 +02:00
Khaled Hosny 3f79c533ca vcl: Pass DirectWrite fonts directly to Skia
Drop the GDI fonts dance we don’t need now since we already have
DirectWrite fonts from font enumeration.

Change-Id: I7368067a53cd70857621a4a5308b2955314e515f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207988
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-14 00:16:29 +02:00
Julien Nabet 43bc0b8c3a tdf#172008: blacklist Intel Iris Xe Graphics for Skia
Change-Id: I055ef48e1ae713969195fd6682d43ac790364a99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205797
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-05-28 11:22:32 +02:00
Adolfo Jayme Barrientos fc1af7dd2c tdf#171916 Rename “Safe Mode” to “Troubleshoot Mode”
Change-Id: Iee6f992f06428b2a80410590bc489277d47b020b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204820
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-05-06 20:49:39 +02:00
Xisco Fauli cfd3309a5d loplugin:unusedmethods
Check existing ones that can be removed

Change-Id: I6ee6fc1772c620ac5d12fea915681b094b7c3bfd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204583
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-04-30 08:54:45 +02:00
Khaled Hosny 38f0fe5d16 tdf#171624: Use vcl::FontVariation instead of hb_variation_t
Replace hb_variation_t with vcl::FontVariation and convert to HarfBuzz
type only when interacting with HarfBuzz API. This makes VCL APIs
tied less to HarfBuzz API.

Change-Id: I1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203243
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-04-06 17:12:56 +02:00
Andrea Gelmini e95334a66e Fix typo "then"->"than"
Change-Id: Ic8a5797b0196f36288bf0af984dd074a2a443198
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202919
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-03-29 09:45:27 +02:00
Khaled Hosny ece6f72de3 Apply font variations when drawing text with Skia
Set variations on the Skia font since now we allow the user to set font
variations, and they can be different from the variations the font was
created with. Previously we only supported named instances and these got
their variations set by the platform font API.

Change-Id: I2cda0409273a8ae00f40dacb1deb166af65ebbe5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200673
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
Tested-by: Jenkins
2026-03-02 21:43:58 +01:00
Michael Weghorn e8cb84378b vcl: Get SalData in vcl_sal::getSalDisplay instead of passing as param
All callers of vcl_sal::getSalDisplay call
GetGenericUnixSalData to get the GenericUnixSalData*
to pass as an argument.

Simplify this by dropping the param and
calling GetGenericUnixSalData inside
vcl_sal::getSalDisplay itself.

Change-Id: Id6269b656fbc7414ca65facc717c5b7fc3075e85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200301
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-25 14:44:05 +01:00
Michael Weghorn eeafcbe2ac vcl: Merge SalDisplay and SalX11Display
SalX11Display is the only subclass of the
abstract SalDisplay class.

Merge them and keep the SalX11Display name
to clarify that this is specific to the gen/x11
VCL plugin.

Further simplification (e.g. in the dtor
can follow in separate commits).

Change-Id: Ia0eae9f03c25ff82cbc0834f290c0a828c7c49ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200299
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-25 14:43:49 +01:00
Xisco Fauli caa0397cf9 skia: upgrade to m146
* fix-windows-operator-equals.patch.1 has been fixed upstream

Change-Id: If83e9afddbebf37246fda240acafc8ecec370d5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199726
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-20 08:33:17 +01:00
Mike Kaganski bc3376e82b tdf#170682: Use Skia/raster in safe mode on Windows and macOS
After commits 07f480b7c8 (make skia
mandatory on MS-Windows, disable GDI backend, 2025-07-03) and
e7bd446baa (tdf#167642 Restart in
safe mode doesn't launch safe mode on macOS, 2025-07-25), Skia is
enabled in safe mode on these platforms. After enabling it, there
was no code to handle safe mode - so initRenderMethodToUse would
enable HW acceleration (and potentially crash, if the reason to
start safe mode was crash caused by Vulkan / Metal).

This change returns RenderRaster from initRenderMethodToUse in
safe mode on these platforms.

Change-Id: Ie80938f28985cb60e3936f274f26c3dcfa838616
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198993
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-09 17:09:53 +01:00
Xisco FauliandNoel Grandin 54f3aac488 skia: upgrade to m145
(*) the windows build tends to want more operator== for various things.
This particular issue has been fixed in the next milestone of skia.

Co-authored-by: Noel Grandin <noel.grandin@collabora.co.uk>

Change-Id: Ic36a67468c09eb5a673c1948d16c84212a7060e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198141
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-01-27 11:58:19 +01:00
Mike Kaganski 3a54d9870f Simplify use of COMReference a bit
1. Avoid explicitly specifying COM_QUERY in calls to QueryInterface
   (it is implied from the name).
2. Drop redundant ctor and set() that duplicate QueryInterface.
3. Allow ThrowIfFailed without a message.

Change-Id: I75b545e534efb7e57da131dfd40a2a49d204efac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198033
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-24 13:36:50 +01:00
Gabor Kelemen b63115f3fa tdf#146619 Use more forward declarations in include/vcl/[d-g]*
Found after running bin/find-unneeded-includes --headersfwd include/vcl/[d-g]*

This shaves off about 150M input

Change-Id: I2b15257451d4b392dca3e5d07f4a443ee653b04c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196395
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-11 21:38:37 +01:00
Noel Grandin 06ec063412 tdf#169914 dark mode + editing report + Windows + chart is broken
regression from
  commit 9791aaaa31
  Author: Noel Grandin <noelgrandin@gmail.com>
  Date:   Tue Aug 5 14:40:41 2025 +0200
  tdf#167643 Selection is black

What is weird here is that this is what I first tried when fixing
tdf#167643, and it did not work.

But now this change does work, and tdf#167643 does not recur.
Huh.

It still looks terrible, but at least it is visible now.

The report designer will likely need further work to support
dark mode properly, and likely chart rendering too.

Change-Id: I6b7ed5d073a73377edcb772ef016cdb53294eb9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196827
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-10 12:15:08 +01:00
Xisco Fauli 145775f9ac tdf#168076: fix vertical glyphs position
Regression after
commit 027c65e72e
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Wed Jul 2 14:31:20 2025 +0200

    skia: upgrade to m139

Adapt code accordingly after
https://skia-review.googlesource.com/c/skia/+/1004298

Change-Id: Ic308c17eeee081f1c44ea089599a8a4ef6b7ca02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196082
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-12-22 15:27:02 +01:00
Xisco Fauli 5623aac80c skia: disable C4100 using #pragma warning
As suggested by Mike Kaganski in
https://gerrit.libreoffice.org/c/core/+/195856

Change-Id: I296c10bb563cf1e2261a540d0cfa2d8bad6f4cc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195881
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-12-19 12:03:01 +01:00
Mike Kaganski 1d96d6d63a Cleanup the pragmas silencing an external's warnings
1. Make sure to restore warnings in MSVC after the include.
2. Only use `#pragma GCC diagnostic`, which works both in
   GCC and clang.

Change-Id: I0e43659bd9aef5b3758801b474cc3188b1056790
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195876
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-12-19 09:01:46 +01:00
Xisco Fauli 3ecaa6694c skia: upgrade to m143
Done following the steps in external/skia/README

Change-Id: I9b9f1ed9b726cbfd8fc3b540a06f54c91aa70b5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195838
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-12-18 17:50:07 +01:00
Noel Grandin 4e2b089020 loplugin:stringloop
resurrect the plugin and run it over the codebase

Change-Id: I443a75961124aabd1e62b3c4bc166d52e4621b52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194870
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-12-01 14:25:01 +01:00
Mike Kaganski d54816ba99 Simplify a static initialization
Instead of an initialization lambda, use COMReference ctor taking an
ancestor COMReference. For that, let WinSalGraphics::getDWriteFactory
return const COMReference&.

Change-Id: Ib2200f800a2562c5e7bcb8ca96a9b2d34dd54be2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193139
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-10-29 13:39:51 +01:00
Xisco Fauli 9d656704c7 skia: upgrade to m140
Done following the steps in external/skia/README

Change-Id: I05fb1340f912609f6a568509db8b02a0be55cf58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191659
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-09-30 14:10:38 +02:00
Noel Grandin c92f890cf5 tdf#160345 skia native rendering of bitmap tiling
which makes this SVG pretty fast, should benefit a lot
of texture/gradient fill type drawing

Change-Id: Ib9684af56d6208d141165d6b26e64c313033f64f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190899
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-12 20:57:42 +02:00
Noel Grandin 7fcb64110c these SkBlendMode params are not used anymore
Change-Id: I7ecb8cd17eb9ecb28ceb37b799c6a29e13b62953
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190735
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-10 11:46:54 +02:00
Noel Grandin 409eae8b72 SalBitmap::Replace is not implemented by any backend
so just remove it and use the fallback

Change-Id: I980f67b31f22c731eb966408b58ce95477a9573d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190650
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-08 11:08:56 +02:00
Noel Grandin 7a1e4bcdbd remove now unused parts of BitmapEx
Change-Id: Ic644e8c4e2dc4e14583e7c633af3dc9b0fe7bce9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190623
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-06 09:19:14 +02:00
Noel Grandin 6d0e5ddede remove BitmapEx
all use-sites have been converted to Bitmap

Change-Id: I1a8842217a266eef100bd387ab013b004e532256
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190618
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 19:45:45 +02:00
Noel Grandin 7d77474c3b BitmapEx->Bitmap in a couple of places
where we can just call something on the underlying Bitmap

Change-Id: Ieaeb72ca5d0a7a9e35c94daa86ba38bda992a164
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190611
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-05 12:32:07 +02:00
Noel Grandin aba63efcdb converting the SalGraphics backend from BitmapEx->Bitmap (3)
pass a single SalBitmap in drawTransformedBitmap

Change-Id: Iacb67804e47867f4ab85b394b14f052807925b75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-04 17:06:46 +02:00
Noel Grandin 9a7a93122e we have not used 1-bit bitmaps internally for a while
Change-Id: If5a15fb7cc5198a898da0ca44557befa88c70a7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190536
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-03 16:34:50 +02:00
Noel Grandin 0f393e0c1d Simplify SalBitmap::Create
We don't need the
    Create(const SalGraphics& src,  vcl::PixelFormat)
variant, because all of the call sites just want a copy
of src with the same format as src, and we already have
a Create() variant for that.

Change-Id: Idb452da2de6baf072be82274435cf765e38c518b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190541
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-03 11:10:10 +02:00
Noel Grandin 32080b4cd7 pass SalGraphics by ref to SalBimap::Create
since it is never nullptr, which flushes out some unused code

Change-Id: I70c7cbc7c3f79e42448fb986c74ef099fdc5d02b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190509
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-02 20:15:28 +02:00
Noel Grandin 49e84a4f35 simplify drawAlphaBitmap paths
they either return true, or they fail in ways that cannot usefully be recovered from.

So just remove the bool return value, and drop the fallback code.

Change-Id: I8a6ac9925defd0a304281f223f11393106b63e28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190497
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-09-02 07:53:56 +02:00
Noel Grandin 62846d27a2 start converting the SalGraphics backend from BitmapEx->Bitmap (2)
pass a single SalBitmap to drawAlphaBitmap

Change-Id: I7e3a732055d4b5de1cd77541593d0bad6d96156e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190436
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-09-01 18:24:06 +02:00
Noel Grandin 96b651f9a1 start converting the SalGraphics backend from BitmapEx->Bitmap
fold the two drawBitmap methods together. The second variant
is no longer necessary since we can draw alpha with the
first one.

Change-Id: I578f72eb59af408624ef321059cfe897258e0b5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190430
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-31 16:24:31 +02:00
Hossein 4fe73837a0 tdf#168139 Avoid assertion failure on X11 with Skia/Vulkan
Using X11 backend (gen), LibreOffice produces assertion failure on a
debug build when running with Skia/Vulkan. That is because of missing
implementation for handling transparency on that platform.

I turned the assert/TODO into a warning to avoid assertion failure.
This is supposed to be only for X11, and is tested on Linux.

Change-Id: Iea7ac732123446843aaa71748c10bc17e305fc8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190291
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2025-08-28 11:05:25 +02:00
Noel Grandin 18b488deed Make Bitmap::HasAlpha() more reliable
checking for 32-bit format is not sufficient when there are 32-bit
formats which do not have actual alpha data.

Change the SalBitmap backend interface to return ScanlineFormat
rather than BitCount, to give a more reliable picture.

Change-Id: I6dde931a05415a9fbe0e8e696173b58e744b0e0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190242
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-27 07:39:21 +02:00
Mike Kaganski 1a62a694aa Add a missing include
<config_skia.h> is required to declare skwindow::MakeVulkanForWin,
otherwise it is shown as error in VS IDE. No idea why doesn't it fail
in build.

Change-Id: I6dce2140f66c88beb3f58eadecd5d9c8363f26a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190060
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-08-22 15:36:58 +02:00
Noel Grandin 0b88a1966f tdf#167644 UI: The drop down arrows are upside down
regression from
    commit 088a7c7c45
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Tue Sep 24 16:18:11 2024 +0200
    remove alpha device from OutputDevice

Change-Id: I1323d9f0a42f18fe367d0b851eb8400e25689161
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190046
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-08-22 11:53:45 +02:00
Noel Grandin 4977c89e3e BitmapEx->Bitmap in CreateFromCairoSurface
now that Bitmap supports transparency

Change-Id: I8c890db186c1e37ea535ff515633d083fec8d8c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189617
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-08-15 07:22:01 +02:00