Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Default gamma handling #72
Today I took some time to invest into gamma handling. It seems that with Windows 7 (according to Wikipedia) the operating system can already perform gamma correction on a system level. This means that we should not only implement gamma handling on a per bitmap level (for mixing bitmaps from a different color space), but also specify the handling based on the operating system (e.g. add code to query the current gamma setting etc.).
Also, by default (as most users are using modern systems), we should set it to 1 rather than 2.2 as it is right now. This said, we still need to be aware of the gamma value to avoid problems with certain drawing algorithms (such as blurring).