blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Window size addition to mojo/app/window #10

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: StrangeIsMyName

This is a small addition to allow the user to resize windows programatically `

rem monkeydoc Resize the current window

#end    
method WindowResize( x:int, y:int,  width:int, height:int)
    SDL_SetWindowPosition( _sdlWindow, x, y )
    SDL_SetWindowSize( _sdlWindow, width, height )
End 

` There may be another way, but this was the only way I could think to do it.

The code just needs to be added to mojo/app/window.monkey2