devinacker / bsnes-plus

debug-oriented fork of bsnes
http://bsnes.revenant1.net
327 stars 94 forks source link

[Linux/KDE] Register View/Edit Fields Are Too Narrow #314

Open RobertTheSable opened 2 years ago

RobertTheSable commented 2 years ago

On my system, after building bsnes-plus, I find that the register edit fields in the debugger are too narrow and always cut off one digit of the register's data.

This is particularly an issue for 1-byte registers where only half of the register's data is visible.

Screenshot:

Screenshot_20211130_075206

System Information:

Operating System: Kubuntu 21.04 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Kernel Version: 5.11.0-40-generic OS Type: 64-bit Graphics Platform: X11 Graphics Processor: AMD Radeon ™ RX 480 Graphics

I also experienced the same problem after building on OpenSUSE Tumbleweed. Though I don't recall the exact system info at the time.

In my experience, changing the width from digits + 1 to digits + 2 results in being able to see the full contents of the register.

devinacker commented 2 years ago

This has come up before (see #110), and just adding an extra digit to the field width was also the proposed solution back then too. I'll have to look into this again at some point and see if there are any other decent possible solutions.