mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Fixed off by 1 errors.
This commit is contained in:
parent
3b3527ffc7
commit
406a8fba13
@ -116,7 +116,7 @@ public class NormalMapTest extends ApplicationAdapter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean touchDragged (int screenX, int screenY, int pointer) {
|
public boolean touchDragged (int screenX, int screenY, int pointer) {
|
||||||
skeleton.setPosition(screenX, Gdx.graphics.getHeight() - screenY);
|
skeleton.setPosition(screenX, Gdx.graphics.getHeight() - 1 - screenY);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ public class NormalMapTest extends ApplicationAdapter {
|
|||||||
skeleton.update(Gdx.graphics.getDeltaTime());
|
skeleton.update(Gdx.graphics.getDeltaTime());
|
||||||
|
|
||||||
lightPosition.x = Gdx.input.getX();
|
lightPosition.x = Gdx.input.getX();
|
||||||
lightPosition.y = (Gdx.graphics.getHeight() - Gdx.input.getY());
|
lightPosition.y = (Gdx.graphics.getHeight() - 1 - Gdx.input.getY());
|
||||||
|
|
||||||
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user