drhelius / Gearsystem

Sega Master System / Game Gear / SG-1000 emulator and debugger for macOS, Windows, Linux, BSD and RetroArch.
https://x.com/drhelius
GNU General Public License v3.0
265 stars 46 forks source link

Feature Request: Fit Window to Output #58

Closed jet082 closed 8 months ago

jet082 commented 2 years ago

It is a bit frustrating to have the image of the game with so much dead space around it. It would be nice if the window itself could be resized to fit 100% of the output content. That way, we could have integer scaling, but no dead space.

image

drhelius commented 2 years ago

I understand integer scale as a pixel perfect scaling factor, x2, x3, x4, etc. applied to the width and height of the original image.

When setting "Scale" to "Auto" the emulator is finding the higher factor possible for the current window size. If you resize the window it will recalculate it as required.

If I understand it correctly, what you are asking for is not integer scaling, it is fit to height, right? AKA using all the height of the window and at the same time keeping the aspect ratio. That will produce a non integer scaling factor but could be added anyway.

drhelius commented 8 months ago

After rereading the issue again I understand the problem. I'll fix it soon.