Bug 438980 - display blurred if using monitors with different screen scales.
Summary: display blurred if using monitors with different screen scales.
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 439227 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-21 07:40 UTC by Ernst Reissner
Modified: 2021-07-14 23:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Reissner 2021-06-21 07:40:50 UTC
SUMMARY


STEPS TO REPRODUCE
1. open a file created with latexx. 
2. 
3. 

OBSERVED RESULT
all blurred. 
If zoomed it is a bit better but ompared with other viewers on my box: 
very bad. 
On my computer at home, linux, all looks good

EXPECTED RESULT
same qualitz as for other viewers. 


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Oliver Sander 2021-06-21 07:44:39 UTC
What is your operating system?  Do you use screen scaling?
Comment 2 Albert Astals Cid 2021-06-21 09:09:48 UTC
And attach the file that is giving you problems
Comment 3 Ernst Reissner 2021-06-21 09:20:06 UTC
(In reply to Oliver Sander from comment #1)
> What is your operating system?  Do you use screen scaling?

windows 10 64 bit
Comment 4 Ernst Reissner 2021-06-21 09:22:50 UTC
(In reply to Oliver Sander from comment #1)
> What is your operating system?  Do you use screen scaling?

scaling 125%, 2 monitors
Comment 5 Oliver Sander 2021-06-21 09:25:36 UTC
Is it blurry on both monitors?  Is it blurry if you set scaling to 100%?
Comment 6 Ernst Reissner 2021-06-21 15:50:00 UTC
(In reply to Oliver Sander from comment #5)
> Is it blurry on both monitors?  Is it blurry if you set scaling to 100%?

Ah, relevant Hhiint: It is blurred at 2 monitors but not on the thrid which is the laptop. Blurring disappears if zoom is set to 100%
Comment 7 Oliver Sander 2021-06-21 18:39:55 UTC
This is what I expected.  Per-screen-scaling hasn't seen much love until recently, because on Linux you won't get it anyway unless you use wayland.

That being said, there have been a few patches recently.  Can you try the 21.04 release, please, and report back?
Comment 8 Ernst Reissner 2021-06-22 07:08:32 UTC
(In reply to Oliver Sander from comment #7)
> This is what I expected.  Per-screen-scaling hasn't seen much love until
> recently, because on Linux you won't get it anyway unless you use wayland.
> 
> That being said, there have been a few patches recently.  Can you try the
> 21.04 release, please, and report back?

Id like to do that but until now was not able to download a version more recent than the one i already have. ... 
Help is welcome.
Comment 9 Oliver Sander 2021-06-22 07:45:47 UTC
What about the nightly builds mentioned at

  https://okular.kde.org/download/

?
Comment 10 Ernst Reissner 2021-06-22 09:26:56 UTC
(In reply to Oliver Sander from comment #9)
> What about the nightly builds mentioned at
> 
>   https://okular.kde.org/download/
> 
> ?

Strange enough: i tried exactly this, same version as before. 
Now I tried some minutes before, now it is a newer Version. 

Whether it is better? Maybe... I dont know really. 
Still sometimes I cannot distinguish -, = and + always.
Comment 11 Laura David Hurka 2021-06-22 11:23:11 UTC
Okular uses qApp->devicePixelRatio() in some places to get the screen scaling. It should return 125%, because that is your highest scaling. Apparently it returns 1000% instead, so it is sharp only on your laptop display.

If you disconnect / turn off the laptop display or set it to 125% too, is it sharp then?
Comment 12 Oliver Sander 2021-06-22 11:36:42 UTC
> Okular uses qApp->devicePixelRatio() in some places to get the screen scaling.

I thought I fixed all that, but I may be wrong.  The only remaining per-screen-scaling issue I know of is

  https://invent.kde.org/graphics/okular/-/merge_requests/368

(which only bites if you use presentation mode).
Comment 13 Laura David Hurka 2021-06-22 22:54:16 UTC
(In reply to Oliver Sander from comment #12)
> > Okular uses qApp->devicePixelRatio() in some places to get the screen scaling.
> 
> I thought I fixed all that, but I may be wrong.  The only remaining
> per-screen-scaling issue I know of is
> 
>   https://invent.kde.org/graphics/okular/-/merge_requests/368
> 
> (which only bites if you use presentation mode).

Sorry, I forgot that you fixed it recently. :) 

But not in 20.12 maybe?

> |\| 
> | * d0b9b138c Switch to existing document in new tab by default
> | * c2d725219 GIT_SILENT Upgrade release service version to 21.03.80.
> * | 889e744f9 GIT_SILENT Upgrade release service version to 21.07.70.
> |/  
> * 272b386f5 Enhance FictionBook support: book annotation, text-author for the cite, section subtitles
> * 3f923aa7b Move to new appstream format for mimetypes
> * 5e5fcd88b Fix loading files from cbr file on windows
> * 9af0bdee9 Remove dead cmake code
> * e6f82a50c Fix unrar detection on Windows

> * ccda6d2a6 Remove device pixel ratio scaling from PixmapRequest

> *   e3d090e9a Merge remote-tracking branch 'origin/release/20.12'
> |\  
> | * 6f5b23290 presentation: Show better the status of the "playing" button
> * | 88200f4f2 Merge remote-tracking branch 'origin/release/20.12'
> |\| 
> | * f8fa27e21 pdf: Fix InPlace text annotations being loaded as linked
> | * 5951fc273 GIT_SILENT Update Appstream for new release
> | * e8194ba63 GIT_SILENT Upgrade release service version to 20.12.3.
> * | 5044a63cd GIT_SILENT Update Appstream for new release
> * | 22d244ab8 Remove obsolete AUTHORS file
Comment 14 Oliver Sander 2021-06-23 03:26:23 UTC
> But not in 20.12 maybe?

No, not in 20.12.  And I never tested it myself on Windows.
Comment 15 Laura David Hurka 2021-06-27 21:25:00 UTC
*** Bug 439227 has been marked as a duplicate of this bug. ***