Skip to content

Commit

Permalink
renderer: in wave mode 2 and 3, wave_x was used where it should be wa…
Browse files Browse the repository at this point in the history
…ve_y

Surprisingly, the effect of this is almost imperceptible. It's perhaps
most visible in Tornado Rain Dance, where midi3 now moves the wave
along the x axis instead of a diagonal.
wpwrak committed Dec 30, 2011
1 parent 0e5f809 commit 422f17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/raster.c
Original file line number Diff line number Diff line change
@@ -221,7 +221,7 @@ static int wave_mode_23(struct frame_descriptor *frd, struct wave_vertex *vertic
s2 = samples[8*i+32+1]/32768.0;

vertices[i].x = (s1*frd->wave_scale*0.5 + frd->wave_x)*renderer_texsize;
vertices[i].y = (s2*frd->wave_scale*0.5 + frd->wave_x)*renderer_texsize;
vertices[i].y = (s2*frd->wave_scale*0.5 + frd->wave_y)*renderer_texsize;
}

return nvertices;

0 comments on commit 422f17b

Please sign in to comment.