makotok/Hanappe

improvement of flower.openWindow

Closed this issue · 1 comments

flower.openWindow, it is necessary to explicitly specify the size.
If many of the mobile environment, I'm just a little trouble handling this.

local screenWidth = MOAIEnvironment.horizontalResolution or 320
local screenHeight = MOAIEnvironment.verticalResolution or 480

flower = require "flower"
flower.openWindow("Flower samples", screenWidth, screenHeight)
flower.openScene("main_scene")

Change as follows.

  • If you do not specify a size, open the window with the optimal size for your environment.
  • If you specify a size, I open the window with the specified size.
flower = require "flower"
flower.openWindow("Flower samples")
flower.openScene("main_scene")

I decided to respond in main.lua.
flower.lua not fix.