luzfcb / tintwizard

Automatically exported from code.google.com/p/tintwizard
2 stars 0 forks source link

bugfix: alpha values were decreased on load-save cycle #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a stored configuration
2. Save it immediately under a different name
3. Run diff on both config files. Alpha values for color parameters will almost 
always be decreased by 1.

The problem arose from incorrect (floor) rounding of alpha values converted 
between 0..100 and 0..65535 ranges. The attached patch fixes this.

Original issue reported on code.google.com by vana...@gmail.com on 29 Jan 2015 at 5:14

Attachments: