[Implemented] ScreenWidth() and ScreenHeight()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

[Implemented] ScreenWidth() and ScreenHeight()

Post by Joakim Christiansen »

A ScreenWidth() and ScreenHeight() to get the width and height of the currently opened screen.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Surely you know this because you have already opened it?
--Kale

Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Windowed screens can auto-resize to the window with offsets and you don't know what.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

afaik, when using screen with windowedscreen and resizing the window, the screen will be automatical resized too.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

I forgot about windowed screens, Yes this could be useful.
--Kale

Image
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

In windowed screen, the screen size does really change, the display is only 'stretched'.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Kale wrote:Surely you know this because you have already opened it?
Yeah but... sometimes it could be quite handy...
Let's say you're making a include-file and that file need to know the width of the screen, but you don't want it to share variables with the other file because then the whole thing get's messy and stuff like that.... :lol:

I just think it would be cool to have. :twisted:
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Fred wrote:In windowed screen, the screen size does not really change, the display is only 'stretched'.
I added a word for you, I guess it's what you ment to write... :wink:
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

:wink:
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

yes, stretched... its exactly what i mean ;)
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Fred wrote:In windowed screen, the screen size does really change, the display is only 'stretched'.
I see, i don't think i've ever used a windowed screen. :oops: i'll have to have a look now. :)
--Kale

Image
Post Reply