Mercurial > hg > Members > kono > Cerium
changeset 599:e923249c318a
change alpha
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 05 Nov 2009 22:22:10 +0900 |
parents | a64e729a8072 |
children | b480cec5af53 |
files | Renderer/Engine/spe/DrawSpan.cc Renderer/Engine/task/DrawSpan.cc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/spe/DrawSpan.cc Thu Nov 05 22:00:10 2009 +0900 +++ b/Renderer/Engine/spe/DrawSpan.cc Thu Nov 05 22:22:10 2009 +0900 @@ -165,7 +165,7 @@ int color = get_rgb(tex_x, tex_y, tile); /*下位4bitを抽出*/ - int alpha = color & 0xF000; + int alpha = color & 0xff000000; /*完全に透けているか判断*/ int flag = (alpha != 0);
--- a/Renderer/Engine/task/DrawSpan.cc Thu Nov 05 22:00:10 2009 +0900 +++ b/Renderer/Engine/task/DrawSpan.cc Thu Nov 05 22:22:10 2009 +0900 @@ -164,7 +164,7 @@ int color = get_rgb(tex_x, tex_y, tile); /*下位4bitを抽出*/ - int alpha = color & 0x000F; + int alpha = color & 0x000000ff; /*完全に透けているか判断*/ int flag = (alpha != 0);