Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: Atelier Sentô on October 23, 2013, 04:28:02 PM

Title: Down-scaling when the screen resolution is lower than the game resolution
Post by: Atelier Sentô on October 23, 2013, 04:28:02 PM
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 (http://forum.dead-code.org/index.php?topic=4901) :
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 :
(http://farm8.staticflickr.com/7296/10441352136_79a308cdab_o.jpg)
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!
Title: Re: Down-scaling when the screen resolution is lower than the game resolution
Post by: Mnemonic on October 24, 2013, 07:28:46 AM
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).
Title: Re: Down-scaling when the screen resolution is lower than the game resolution
Post by: Atelier Sentô on October 24, 2013, 12:27:10 PM
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!
Title: Re: Down-scaling when the screen resolution is lower than the game resolution
Post by: Mnemonic on October 24, 2013, 01:03:32 PM
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.
Title: Re: Down-scaling when the screen resolution is lower than the game resolution
Post by: Atelier Sentô on October 24, 2013, 01:15:30 PM
OK, thank you!