Hi-DPI patches for 4.2

Keith Curtis keithcu at gmail.com
Tue Mar 11 03:29:56 PDT 2014


On Tue, Mar 11, 2014 at 4:57 AM, Norbert Thiebaud <nthiebaud at gmail.com> wrote:
>
>
> On Tue, Mar 11, 2014 at 3:53 AM, Keith Curtis <keithcu at gmail.com> wrote:
>>
>> That picture is bizarre in that the gridlines drawn by Calc are not being
>> doubled. Have you fiddled with the OS DPI stuff?
>
>
> The grid lines are not bitmap, they are vector drawing...
>  but more importantly... _WITH_ the #ifdef to prevent the meddling with
> bitmap everything looks 'fine'.
>
>

Yes, but according to the docs, in compatibility mode, "Any
vector-based drawing performed by an app is scaled for high
resolution"

https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html#//apple_ref/doc/uid/TP40012302-CH4-SW5

The Mac LibreOffice screenshots in bug reports I have seen have
doubled vector drawing. I think there is something wrong with your
build. In any case, if you feel something should be done for the Mac,
the simplest thing is to add two #ifdefs to force the DPIScaleFactor
to 1 for the Mac:

https://gerrit.libreoffice.org/#/c/8516/1/vcl/source/window/window.cxx,cm

That would turn off all bitmap doubling in a very localized place.
What do you think about that?

-Keith


More information about the LibreOffice mailing list