Brightness working in C