[0.99.6] "Fit image to window" incorrect on retina

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
lolmaus
Posts: 6
Joined: Wed Dec 22, 2021 9:37 am

[0.99.6] "Fit image to window" incorrect on retina

Post by lolmaus »

Hi! Using 0.99.6 64-bit on Windows 10 Pro.

When I use "Auto image size" → "Fit image to window" on a non-retina display, the result is correct:

Image

However, when I move the window to a retina display, the image is resized incorrectly. Here's an example for a 150% retina factor:

Image

Apparently, some part of XnViewMP is accounting for the retina factor in its calculation while another part doesn't.
lolmaus
Posts: 6
Joined: Wed Dec 22, 2021 9:37 am

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by lolmaus »

I would like to add that this hasn't been the case previously. This bug is a regression introduced at some point.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by xnview »

it was always like, if you click on 'fit image to window'?
Pierre.
lolmaus
Posts: 6
Joined: Wed Dec 22, 2021 9:37 am

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by lolmaus »

xnview wrote: Wed Dec 22, 2021 12:18 pm it was always like, if you click on 'fit image to window'?
I don't understand the question, please rephrase.

I would like to add that this happens only to images that are smaller and should be stretched in "Fit image to window" mode. Images that are larger and should be shrunk are fine.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by xnview »

Perhaps you had 'settings>View>Zoom on HiDPI screen...'?
Pierre.
lolmaus
Posts: 6
Joined: Wed Dec 22, 2021 9:37 am

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by lolmaus »

xnview wrote: Wed Dec 22, 2021 1:50 pm Perhaps you had 'settings>View>Zoom on HiDPI screen...'?
Yes, unchecking that checkbox resolved my issue, thanks!

But I still think there's a problem with it enabled. If that behavior is intentional, why does it only affect smaller images?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by xnview »

lolmaus wrote: Wed Dec 22, 2021 1:55 pm But I still think there's a problem with it enabled. If that behavior is intentional, why does it only affect smaller images?
On HiDPI screen, when enabled the image size doesn't use pixel scaling
Pierre.
lolmaus
Posts: 6
Joined: Wed Dec 22, 2021 9:37 am

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by lolmaus »

Well, this option breaks "Fit to window" for smaller images, doesn't it?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: [0.99.6] "Fit image to window" incorrect on retina

Post by xnview »

lolmaus wrote: Thu Dec 23, 2021 5:07 am Well, this option breaks "Fit to window" for smaller images, doesn't it?
No, why? Perhaps i don't understood the problem?
Pierre.
Post Reply