jpegview icon indicating copy to clipboard operation
jpegview copied to clipboard

The main window is blinking when opening large files with DefaultWindowRect=max

Open DmitryScaletta opened this issue 2 years ago • 2 comments

Steps to reproduce

  1. Change options
BackgroundColor=239 239 239
ShowFullScreen=false
DefaultWindowRect=max
  1. 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

1 2 3 4

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

DmitryScaletta avatar Jun 16 '23 10:06 DmitryScaletta

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)

amymor avatar Jul 09 '23 18:07 amymor

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

sylikc avatar Jul 18 '23 16:07 sylikc