• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revision3a940811b717ac9f88f0522d4aa08e48e9202889 (tree)
Time2017-03-05 14:33:00
AuthorSUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

ソフト描画で落ちることがあるのを修正

Change Summary

Incremental Difference

--- a/ssz/sff.ssz
+++ b/ssz/sff.ssz
@@ -1295,11 +1295,11 @@ public &Anim<frame_t>
12951295 {
12961296 if(#`spr == 0 || #`spr~pxl == 0) ret;
12971297 float h = (float)`frames[`drawidx].h, v = (float)`frames[`drawidx].v;
1298- float xs = xscale, ys = yscale;
1299- float agl = angle;
1298+ float xs = xscale, ys = yscale, agl = 0.0;
13001299 `exParam(`frames[`drawidx]=, h=, v=, agl=);
13011300 float rx = x+xs*h*(float)`frames[`drawidx].x+(float).com.GameWidth/2.0;
13021301 /?/*.cfg.OpenGL:
1302+ agl += angle;
13031303 `spr~glDraw(
13041304 `palFoo(fx), `mask, #(xs*h)*(float)`spr~rct.x*.com.WidthScale,
13051305 #(ys*v)*(float)`spr~rct.y*.com.HeightScale, `tile=,
@@ -1308,8 +1308,8 @@ public &Anim<frame_t>
13081308 .com.scrrect=, rx*.com.WidthScale,
13091309 (y+ys*v*(float)`frames[`drawidx].y)*.com.HeightScale, fx);
13101310 /*true:
1311- uint uagl = (uint)((512.0/.m.PI)*agl + 0.5) & 0x3ff;
1312- if(uagl == 0x0 && agl == angle){
1311+ uint uagl = (uint)((512.0 / .m.PI) * (angle + agl) + 0.5) & 0x3ff;
1312+ if(uagl == 0x0 && agl == 0.0){
13131313 `draw(
13141314 .com.scrrect=, x - xs*h*(float)`frames[`drawidx].x, y,
13151315 1.0, 1.0, xs, xs, ys, 0.0, (float).com.GameWidth/2.0, fx, false);