Descriptionthisisformyjunk
2009-02-06 16:57:28 EST
One of the conditions to use gamma correction for all of the various screenshot functions is tr.overbrightBits>0
When in windowed mode tr.overbrightBits is forced to 0. So gamma correction is not done. There is no reason to check tr.overbrightBits before doing gamma correction since you can have increased gamma and it still be 0.
If you remove this, gamma correction works as expected whether or not you are in windowed or fullscreen, or have overbrightBits on or off.
here is a patch, it is only 4 lines that need to be changed.
http://dev.randomkeywhacking.com/viewvc/trunk/src/renderer/tr_init.c?r1=266&r2=265&pathrev=266&root=trepidus&view=patch
Created attachment 1963 [details] fix for gamma correction when in windowed mode