with the window object, the display resizes only if the option "resize display to fill window size" is enabled...
it's ok for the 2 windowed modes, but when I try the fullscreen mode (change resolution), I don't want the display to stretch, I just want to change resolution... any idea ?
Well, I can't check right now-- but I'm pretty sure there's at least an extension that can control display stuff. Anyway, changing the resolution and making the app fullscreen will look the same as if you just resize it when it's maximized, although it may run slower on older computers that way.
I know what he wants, I've still done it. My game has 1X, 2X, 3X, 4X and fullscreen options. You just resize it to 1X before going fullscreen - my game only changes mode at startup since it has external options etc. so that could be a contributing factor (as in, when I go fullscreen I haven't resized it at all).