[Implemented] Syntax request: OpenWindowedScreen

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

[Implemented] Syntax request: OpenWindowedScreen

Post by kenmo »

Small request here. In the last few years, some function parameters have retroactively been made optional, and I'd like to suggest one more.

OpenWindowedScreen()'s parameters are currently:

Code: Select all

(WindowID, x, y, Width, Height, AutoStretch, RightOffset, BottomOffset [, FlipMode])
I almost never use the AutoStretch parameters, and set them all to 0... it would be nice to just have to write:

Code: Select all

OpenWindowedScreen(WindowID, x, y, Width, Height)
or if you want to take it to the extreme, have the screen size default to (0, 0, WindowWidth, WindowHeight) :mrgreen:

Code: Select all

OpenWindowedScreen(WindowID)