diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-01-17 13:33:10 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-01-17 13:33:10 -0500 |
commit | df2872c456185090f3b4a7ceba408d576526ba32 (patch) | |
tree | 53f965cfe0b3f44bbe40e84cdc6133adb55afb6c /examples/lines.scm | |
parent | 4a7d9c49f3454a01487ab3661e9d9cd9d6850a7e (diff) |
render: sprite: Fix bug in rendering texture regions.
The texture-rect procedure contains the pixel location of the texture
region, so if you use that rect to render a sprite the result is a
sprite offset by its location in the greater texture, which is very
very very wrong.
* chickadee/render/sprite.scm (draw-sprite): Dynamically configure
rendering rect based on the texture region's width and height.
Diffstat (limited to 'examples/lines.scm')
0 files changed, 0 insertions, 0 deletions