BMX1.12: Center Window in windowed mode?

BlitzMax Forums/BlitzMax Beginners Area/BMX1.12: Center Window in windowed mode?

Why does BMX 1.12 NOT center the app window on the desktop.
Because you're createing it incorrectly.

This should be "default"... shouldn't it?
No.
Strict

Const WIDTH:Int = 400
Const HEIGHT:Int = 300
Const NAME:String = "Whatever.."
Const WINDOW_FLAGS = WINDOW_TITLEBAR | WINDOW_CLIENTCOORDS

Local myGadget:TGadget = CreateWindow ( NAME , (Desktop().width - WIDTH) /2 , (Desktop().height - HEIGHT)/2 , WIDTH , HEIGHT , WINDOW_FLAGS)

While CurrentEvent.ID <> EVENT_WINDOWCLOSE
	WaitEvent()
EndWhile