View Single Post
Old 10 February 2016, 22:35   #97
Registered User
Join Date: Aug 2004
Posts: 2,828
I noticed that in video_calc_gammatable() you do
gamma[i][j] = (uae_u32)v;
where v is of type float.

Since the float-to-int conversion truncates, should you do this instead?
gamma[i][j] = (uae_u32)(v + 0.5f);

Edit to add: Similar issue in limit256() and limit256rb()? The limit256rb() case may be slightly different since there v can be negative.

Last edited by mark_k; 10 February 2016 at 23:05.
mark_k is offline  
Page generated in 0.09780 seconds with 9 queries