snowkit / snow

A low level cross platform framework for Haxe. Mac, Windows, Linux, Android, iOS, WebGL.
http://snowkit.org/snow
MIT License
133 stars 35 forks source link

Web; fullscreen should update window sizes and emit size events #54

Closed smvilar closed 9 years ago

smvilar commented 9 years ago

When setting the config.window.fullscreen flag, Luxe.screen.size will be still set as the config.window.width and config.window.height

Example:

    override function config(config:AppConfig):AppConfig {
        config.window.width = 640;
        config.window.height = 480;
        config.window.fullscreen = true;

        return config;
    }

    override function ready() {
        trace(Luxe.screen.size); // 640, 480
    }
smvilar commented 9 years ago

Hi @underscorediscovery, any news on this issue?

I noticed the only way to get the right values is through Luxe.core.app.window.handle.width and Luxe.core.app.window.handle.height. Not even Luxe.core.app.window.width and height is updated.

ruby0x1 commented 9 years ago

Did you try it in latest? It should be accounted for (like here)

smvilar commented 9 years ago

Hi, sorry for the delayed answer. I think the latest commits (e.g. 98f37eeca53d92f223efafd0fa5d581e1b8e9be3) fixed it.

ruby0x1 commented 9 years ago

:+1: