• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Go で書き直した Ikemen


Commit MetaInfo

修訂683e7efc622e824be9defcece2785b592a6d394f (tree)
時間2018-06-16 06:19:52
作者ShinLucho <shinlucho@gmai...>
CommiterShinLucho

Log Message

Fixed addalpha trans on stages

Change Summary

差異

--- a/src/stage.go
+++ b/src/stage.go
@@ -187,8 +187,8 @@ func readBackGround(is IniSection, link *backGround,
187187 bg.anim.mask = 0
188188 s, d := int32(bg.anim.srcAlpha), int32(bg.anim.dstAlpha)
189189 if is.readI32ForStage("alpha", &s, &d) {
190- bg.anim.srcAlpha = int16(Min(255, s))
191- bg.anim.dstAlpha = int16(Max(0, Min(255, s)))
190+ bg.anim.srcAlpha = int16(Max(0, Min(255, s)))
191+ bg.anim.dstAlpha = int16(Max(0, Min(255, d)))
192192 if bg.anim.srcAlpha == 1 && bg.anim.dstAlpha == 255 {
193193 bg.anim.srcAlpha = 0
194194 }