Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/task/DrawSpan.cpp @ 357:6602b9ba4bfd draft
fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 17 Jul 2009 17:13:17 +0900 |
parents | 5b995810b86a |
children | 4430f0bff5cb |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/task/DrawSpan.cpp Fri Jul 17 15:04:02 2009 +0900 +++ b/TaskManager/Test/test_render/task/DrawSpan.cpp Fri Jul 17 17:13:17 2009 +0900 @@ -573,9 +573,9 @@ flag = (inner_product > 0); // 内積を rgb にかけていく - rgb[0] = rgb[0]*inner_product*flag; - rgb[1] = rgb[1]*inner_product*flag; - rgb[2] = rgb[2]*inner_product*flag; + rgb[0] = (unsigned char)(rgb[0]*inner_product*flag); + rgb[1] = (unsigned char)(rgb[1]*inner_product*flag); + rgb[2] = (unsigned char)(rgb[2]*inner_product*flag); //計算した rgb を light_rgb にまとめる。 light_rgb = (rgb[0] << 24) + (rgb[1] << 16) + (rgb[2] << 8) + (rgb[3]);