View Single Post
Old 08 February 2016, 16:39   #88
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,476
Quote:
Originally Posted by Toni Wilen View Post
I know but I only wanted to add one option. Ok, option moved to Brightness/Contrast/etc select box and both options added
Heh, that's a bit overkill; why would anyone opt for $EE-is-white instead of $FC-is-white?

By the way, it looks like you do ST palette correction after gamma correction. Would it be better to do that before gamma correction?

An equivalent (at least for ST-colours) to
vi = (vi + (vi & 7)) * 2;
is
vi = (vi + (vi >> 4)) * 2;
I don't know which would be faster or produce better code.

Another equivalent would be
vi = (vi<<1) + (vi>>3);

Last edited by mark_k; 08 February 2016 at 16:46.
mark_k is offline  
 
Page generated in 0.04665 seconds with 9 queries