jpegview
jpegview copied to clipboard
The main window is blinking when opening large files with DefaultWindowRect=max
Steps to reproduce
- Change options
BackgroundColor=239 239 239
ShowFullScreen=false
DefaultWindowRect=max
- Open any big file (4k for example)
Actual behavior
The main window is blinking and starts not maximized.
Here is how it looks
https://github.com/sylikc/jpegview/assets/5096735/514b6cde-63d7-4527-a51d-b26dc2b959ec
Frame by frame
Expected behavior
The main window starts maximized with a background color from the options.
Additional info
Every time I open an image, I want to see maximized window not in fullscreen.
I don't like DefaultWindowRect=sticky because the window is not actually maximized, it just remembers the size.
Version: JPEGView64_en-us_1.2.45.msi OS: Windows 10 x64
I have the same problem for large files like 4k, I also noticed that it sometimes happens with 2k and 1080p images too. (My monitor resolution is 900p)
BackgroundColor=60 60 60
ShowFullScreen=false
DefaultWindowRect=350 140 1250 740
https://github.com/sylikc/jpegview/assets/54497554/8a5e7bad-9781-4d93-94fc-8d2f0653d25d
Version: 1.2.45.0 OS: Windows 10 x64 (20h2)
Hmm, maybe I need to test this on a high resolution. It's possible there is a small redraw delay that is only noticeable in ultra high resolutions and the window hasn't finished being painted when it's displayed