Automatic fullscreen size [message #2677] |
Thu, 06 September 2012 03:05 |
|
Hello,
I guess that automatic fullscreen size and scale would be a more-than-welcome feature, and should be easy to implement. In pseudo-code:
display_height = get_display_height
display_width = get_display_width
fullscreen_scale = display_height / system_default_height // example, for the NES it is 240
x_size = display_width
y_size = display_height
x_scale = fullscreen_scale
y_scale = fullscreen_scale
For Linux it's easy to get the screen current resolution via X11 libraries: http://www.sbin.org/doc/Xlib/chapt_03.html, and for Windows this function should suffice: http://msdn.microsoft.com/en-us/library/ms724385%28v=vs.85%29.aspx
BTW, wonderful job!
|
|
Re: Automatic fullscreen size [message #2678 is a reply to message #2677 ] |
Fri, 07 September 2012 17:24 |
|
I thought it's already automatic: http://mednafen.sourceforge.net/documentation/09x/mednafen.html#%3Csystem%3E.stretch Is it not?
|
|
Re: Automatic fullscreen size [message #2679 is a reply to message #2678 ] |
Fri, 07 September 2012 17:31 |
|
Oh, I've been using 0.8.x, I'll give the WIP a test
|
|