How to change a screens brightness?

Advanced game related topics
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

How to change a screens brightness?

Post by Hydrate »

I have been wondering, what is the best way to change the brightness of a 640*480 screen on the fly? I have looked around on the forums but i think im searching for the wrong think as the results i am getting have no relevance. I was thinking perhaps screen gamma?
.::Image::.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Code: Select all

ChangeGamma(R, G, B, Flags)
:?:
--Kale

Image
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post by Hydrate »

Kale wrote:

Code: Select all

ChangeGamma(R, G, B, Flags)
:?:

Thats what i was thinking, is there no more efficient way of doing it? If not its fine, im just making sure its the fastest way of doing things. Also, it seems to change all of the colours also, i just want the screen to appear darker, would it not be best to use a dark alpha sprite for this?
.::Image::.
Post Reply