binocle icon indicating copy to clipboard operation
binocle copied to clipboard

It's somewhat difficult to use at smaller screen and window sizes

Open cyrozap opened this issue 2 years ago • 1 comments

First I'd like to say, thanks for making this tool! It's a lot more convenient than writing a bespoke Python script every time I want to visualize a new binary in a different way.

The only complaint I have about it right now is that it assumes the user has a fairly large monitor. My laptop's built-in screen is 1366x768, so not only does the window default to a size larger than my screen, I can't shrink it to fit my screen. This means that the lower part of the controls get cut off, so I can't access the endianness setting or any other settings below it without expanding the controls really far to the left. In addition, when viewing the controls, the left size of the binary view gets cut off, meaning I have to drag the window to the right in order to try and see that part of the binary. And finally, there's some weird part in the middle of the binary that appears "stretched" for some reason, with non-square pixels, though I'm not sure if this is related--it might be a Vulkan driver issue since Mesa's support for Vulkan on Bay Trail is incomplete and that's what I'm running this on.

1366x768 is a popular resolution for inexpensive laptops, some users set their screens to lower resolutions for accessibility reasons, and others may simply want to run two instances of binocle side-by-side, so it'd be nice if binocle supported smaller window sizes.

Here are some screenshots so you can see what I mean:

cyrozap avatar Nov 08 '21 09:11 cyrozap

Thank you very much for your feedback. I definitely agree that this should be supported. For now, the only way to fix this is to change the hard-coded HEIGHT/WIDTH settings, requiring a recompile.

I think this might be fairly easy to fix though by using something like min(WIDTH, actual_screen_width) for the window width (and similar for the height).

sharkdp avatar Nov 09 '21 21:11 sharkdp