Zoom of first (small) picture in fullscreen wrong

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

Moderators: xnview, Dreamer

Henry_Jones
Posts: 25
Joined: Sat Mar 17, 2007 10:18 am

Zoom of first (small) picture in fullscreen wrong

Post by Henry_Jones »

Bug report - Template
______________________________________________________
Subject: 1.10.5: zoom of first (small) picture in fullscreen wrong

XnView: MP 1.10.5: - 64 bit
OS: Windows 11 25H2 64bit

both viewer and fullscreen zoom set to "zoom to window size, big pictures only". xnview started via image file in fullscreen. If the picture is smaller than the screen it's zoomed to window / screen size. Pictures bigger than the screen are corectly zoomed to window / screen size. If switching to other pictures and back, the correct zoom is applied (small picture stays small).

Effect: display glitch

To reproduce:
0. set "Zoom" to "zoom to window size, big pictures only"
1. open XnView via a picture smaller than screen size to display in fullscreen.
2. picture is zoomed to fullscreen.
3. switch to next picture and back
4. correct zoom is applied

Actual behaviour (bug): zoom of first open picture does not follow set "zoom" rule :bug:

Expected behaviour: the first picture should also follow the set zoom setting.
User avatar
user0
XnThusiast
Posts: 2843
Joined: Sat May 09, 2015 9:37 am

Re: Zoom of first (small) picture in fullscreen wrong

Post by user0 »

I cannot reproduce

try to reproduce with default settings - rename your xnview.ini, start app and make required changes
Henry_Jones
Posts: 25
Joined: Sat Mar 17, 2007 10:18 am

Re: Zoom of first (small) picture in fullscreen wrong

Post by Henry_Jones »

You're right. With a fresh settings file the problem is not present.

But how to hunt down the one other line in the settings file which causes it ? I've quite a few settings changed, rebuilding them would take a while.
User avatar
user0
XnThusiast
Posts: 2843
Joined: Sat May 09, 2015 9:37 am

Re: Zoom of first (small) picture in fullscreen wrong

Post by user0 »

you can compare old and new ini, starting from [Viewer] section
Henry_Jones
Posts: 25
Joined: Sat Mar 17, 2007 10:18 am

Re: Zoom of first (small) picture in fullscreen wrong

Post by Henry_Jones »

Its the line "fit" in the section [Preview].

The entire section is not present in the new settings file at all.

deleting the line fixed the problem.

It's surprising that this line would be taken into account now, after obviously been ignored in the past. I remember this working in some older version.

Anyway, thanks for the suggestion with creating a new settings file. This might become helpful later.