pixop / video-compare

Split screen video comparison tool using FFmpeg and SDL2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent window size to be bigger than desktop resolution

1024mb opened this issue · comments

If I have a 1080p monitor and then open a 1080p file, the window size is so big I can't see the window's title bar anymore and because of that I can't resize the window. Similar happens if I open a 4K video file, with those I can't even see the entire window.

To add to this, as with 4K files if I hold click and drag the mouse the title bar appears and then I can resize, after resizing the slider is not well synchronized with the mouse.

Hi @1024mb,

I recently added the -w [width]x[height] option for specifying the window size. It can be used to downscale the signal to a smaller frame which fits your display (I use it when working on remote desktops myself).

It would be better if we only need to assign the width or height (keeping the ratio).

@ffffwh: agreed, good idea!

I'll look into it at some point.

@ffffwh,

So I've implemented what you suggested in afa00d0.

I'm planning to release a new version for Windows tomorrow.