I meet the same problem on mac.
I also want to know how can I disable the green button in the screenshot.
I meet the same problem on mac.
I also want to know how can I disable the green button in the screenshot.
Can you post your build.settings?
window = {
defaultMode = “fullscreen”,
resizable = false,
enableMaximizeButton = false,
},
troylyndon , I have the same problem, but I could not solve it. In the Win32 Desktop works fine. In OS X Desktop does not work.
build.settings
window = { -- fullscreen, maximized defaultMode = "fullscreen", suspendWhenMinimized = true, minViewWidth = 960, minViewHeight = 640, titleText = { default = "Beasts Battle", }, },
Full screen is probably working just fine. You’re probably drawing your background at a fixed size. Can you post your code where you’re creating your background as well as your config.lua?
Rob
Strange that Win32 Desktop works correctly.
\_W = display.contentWidth; \_H = display.contentHeight; local bgScale = math.max(\_W/1024, \_H/768); local background = display.newImage("image/gui/bgMenu.jpg"); background.xScale = bgScale; background.yScale = bgScale; background.x = \_W/2; background.y = background.height/2\*background.yScale; localGroup:insert(background);
Original size “bgMenu.jpg” 1024x768 px.
Can you produce a smile test case that demonstrates the issue?
Thanks
Rob
Sure I’ll be happy to look at the video. But I need you to file a bug report. That bug report is a complete project (main.lua, config.lua, build.settings and other assets needed) that is small enough to demonstrate the problem and that our engineers can load into the simulator and build it with out them having to guess anything about the rest of your code or setup. This needs to be put into a .zip file and submitted by the “Report a bug” link at the top. I was hoping to take a look at the test project before submitting it. This is why I wanted a demo project.
Make sure to include the video in the bug report’s description too.
Rob
Can you go ahead and file a bug report using the link at the top of the page using this as the demo project?
You will get an email confirming the submission. It will have a CaseID number in the subject. Please post that back here.
Thanks
Rob
Well, I sent in a bug report. Case 46716
Thanks,
Sergey
Thanks!
How long will solve my problem? Case 46716
I can’t provide that estimate. There are too many factors involved. It could be complex fix, it could be easy. The engineer it gets assigned to will have to prioritize it in with their other work. It may be moved up or down their schedule. I don’t know how much work they have to do and where this fits in with everything else.
Rob
Is there a reason you’re not using a config.lua and trying to maintain your own scaling?
An engineer has looked at your project and basically it comes down to you not handling the “resize” event. He thinks on a Mac that it starts processing main.lua before it goes to fullscreen and creating a race condition. But your app would get an event saying “Hey I’m resizing” and you should react to that adjust things accordingly.
Rob
Can just confirm, for OSX, width is now the longer size, height is the shorter size, ie; 1920=width, 1080=height. Unlike on mobiles where height is longer then width?
I’m trying to get a definitive answer, but an app I’m building I have a width of 400 and height of 600 in my config.lua and it’s a “landscapeRight” app. When I build for macOS I get a 600x400 window.
Rob
Its a bit strange. Would be great to get some confirmation on this and also whether scaling is working correctly for osx.
My app which is landscape (on mobile) works fine when config is height=1024, width=768 or height=960, width=640 (as my bg images are 1024x768 with an interface area designed to fall within 960x 640) and I simply use ‘zoomEven’ on mobile .
However for osx, no matter what combination of width/height/scaling i put in the config it chops off the app visuals, the only way it does show the whole app correctly is by not using any scaling and setting the width=960, height=640 in config, and putting those same values for minview/defaultview in the build.settings. Of course when maximising to fullscreen the visuals do get stretched a bit.
Is there perhaps a recommended height and width to work within for osx?