Full screen support?

Hi guys.

LOVING the new OSX/Win32 builds. We’ve got our new game, Hopiko, working and it’s awesome to see in a native app!

The issue we have is that it’s not really fullscreen, please see this screenshot:

https://www.dropbox.com/s/kgvwb6q89qcfamh/Screenshot%202015-07-13%2014.45.17.png?dl=0

The actual playable area is a fixed with in the center of the black.

Is this something that is still a WIP, or am I doing something wrong?

Thanks a lot!

Rob,

Hey Rob,

I know there are some issues with the content width/height etc, what daily build are you using? 

Some of these issues were fixed in daily 2676 so if you’re not using that I’d recommend switching to that and seeing if it helps. For what it’s worth we have our games working fullscreen. It might be worth posting your config.lua setup to see if it’s something in that.

Hey,

I’m using today’s build. The config.lua is a copy/paste job from somewhere. I can’t actually remember where from though:

local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { -- graphicsCompatibility = 1, width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "letterBox", fps = 60, antialias = false, -- fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }

(I’ve tried different zoom types)

Oh, and thanks for helping! :smiley:

I guess it’s the hard coded 480/320 that I need to look at?

That’s what we have for config.lua and in 2675 it didn’t work because of the display.pixelHeight value not being correct, then in 2676 that value was fixed and it all magically worked. I know that isn’t that helpful though.

Is your window table in build.settings set with the same dimensions?

No, it’s not actually. Are you referring to the defaultViewWidth/defaultViewHeight? How do you have that setup? (If you don’t mind me asking of course!)

This is our window table:

 window = { defaultMode = "fullscreen", defaultViewWidth = 320, defaultViewHeight = 480, resizable = true, minViewWidth = 320, minViewHeight = 480, enableCloseButton = true, enableMinimizeButton = true, enableMaximizeButton = true, titleText = { default = "Forever Lost: Episode 3", }, }

Naturally you’d want to change the titleText section :slight_smile:

AMAZING! That worked! I’m not sure what I did differently.

Thanks SO much!

That’s awesome, glad I could help!

Accessing display.* API’s may not be fully functioning in the config.lua yet.

Rob

This is fixed in recent Daily Builds

Hey Rob,

I know there are some issues with the content width/height etc, what daily build are you using? 

Some of these issues were fixed in daily 2676 so if you’re not using that I’d recommend switching to that and seeing if it helps. For what it’s worth we have our games working fullscreen. It might be worth posting your config.lua setup to see if it’s something in that.

Hey,

I’m using today’s build. The config.lua is a copy/paste job from somewhere. I can’t actually remember where from though:

local aspectRatio = display.pixelHeight / display.pixelWidth application = { content = { -- graphicsCompatibility = 1, width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), scale = "letterBox", fps = 60, antialias = false, -- fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, }, }, }

(I’ve tried different zoom types)

Oh, and thanks for helping! :smiley:

I guess it’s the hard coded 480/320 that I need to look at?

That’s what we have for config.lua and in 2675 it didn’t work because of the display.pixelHeight value not being correct, then in 2676 that value was fixed and it all magically worked. I know that isn’t that helpful though.

Is your window table in build.settings set with the same dimensions?

No, it’s not actually. Are you referring to the defaultViewWidth/defaultViewHeight? How do you have that setup? (If you don’t mind me asking of course!)

This is our window table:

 window = { defaultMode = "fullscreen", defaultViewWidth = 320, defaultViewHeight = 480, resizable = true, minViewWidth = 320, minViewHeight = 480, enableCloseButton = true, enableMinimizeButton = true, enableMaximizeButton = true, titleText = { default = "Forever Lost: Episode 3", }, }