Mednafen Members Members   Search Search   Help Help   Register Register   Login Login   Home Home
Home » Mednafen » Development » Automatic fullscreen size
Show: Today's Messages  :: Show Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Automatic fullscreen size [message #2677] Thu, 06 September 2012 03:05 Go to next message
lmello  [PM]
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! Smile
Re: Automatic fullscreen size [message #2678 is a reply to message #2677 ] Fri, 07 September 2012 17:24 Go to previous messageGo to next message
Hatsuyuki  [PM]
I thought it's already automatic: http://mednafen.sourceforge.net/documentation/09x/mednafen.html#%3Csystem%3E.stretch Is it not? Confused
Re: Automatic fullscreen size [message #2679 is a reply to message #2678 ] Fri, 07 September 2012 17:31 Go to previous message
lmello  [PM]
Oh, I've been using 0.8.x, I'll give the WIP a test Cool
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:Atari Lynx games don't load on OS X?
Next Topic:Mednafen 0.9.26-WIP binaries for Mac
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ ]

Current Time: Sat May 18 08:53:17 CDT 2024
.:: Contact :: Home ::.

Powered by FUDforum.
Copyright © FUDforum Bulletin Board Software