Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Down-scaling when the screen resolution is lower than the game resolution  (Read 8539 times)

0 Members and 2 Guests are viewing this topic.

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô

If I understand well:
A game made with Wintermute won't be able to open full screen if the game resolution is larger than the screen resolution.
Wintermute can up-scale but can't down-scale.

I've read in this topic :
WME Lite scales both ways

I've created a new project with a larger resolution than my computer's screen and open it on wme lite.
When I launch the game on Windows, it automatically starts in full screen... but the game isn't scaled.
I see only a part of the game displayed at its original resolution.
So a large part of the game is outside my computer screen and I can't see it.

A picture to explain what I mean :

I see only the bright part on the computer's screen while the dark part is outside.

Is there something to do to activate down-scaling?
Or maybe down-scaling isn't possible on windows, even with wme lite?

I hope I understandably explained my problem. Thank you for reading! And many thanks for your help!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site

WME Lite doesn't scale the image on Windows (Windows is not really the focus of WME Lite). If you want to scale, you need to modify the code. Namely check the CBRenderSDL::InitRenderer() method and the RealWidth and RealHeight variables.

On mobile devices it uses the actual device resolution and scales the image appropriately. On Windows is just uses the resolution set in ProjectMan and the monitor is supposed to switch to the requested resolution, just like in regular WME (which apparently failed in your example).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô

Thank you for your answer!

Windows is not really the focus of WME Lite
So if I understand well, it's better to release the wintermute version of the game for Windows and the wme lite version of the game for other platforms.

And if I really want to scale, I'll have to modify the code.
I'm not skilled enough to do that right now.
So I bookmark this page and continue to learn more about WME.
I'll come back later if I have more questions to ask about this.

Thank you again for the help!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site

So if I understand well, it's better to release the wintermute version of the game for Windows and the wme lite version of the game for other platforms.
I believe so, yes.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Atelier Sentô

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 52
    • View Profile
    • Atelier Sentô

OK, thank you!
Logged
 

Page created in 0.029 seconds with 19 queries.