Fixed examples resizing.

This commit is contained in:
NathanSweet 2014-06-04 01:58:35 +02:00
parent 7f6abc8c00
commit 556afc3514
3 changed files with 2 additions and 3 deletions

View File

@ -31,7 +31,6 @@
package com.esotericsoftware.spine; package com.esotericsoftware.spine;
import com.esotericsoftware.spine.attachments.Attachment; import com.esotericsoftware.spine.attachments.Attachment;
import com.esotericsoftware.spine.attachments.MeshAttachment;
import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.MathUtils;

View File

@ -87,7 +87,7 @@ public class SimpleTest1 extends ApplicationAdapter {
// Configure the camera, SpriteBatch, and SkeletonRendererDebug. // Configure the camera, SpriteBatch, and SkeletonRendererDebug.
camera.update(); camera.update();
batch.getProjectionMatrix().set(camera.combined); batch.getProjectionMatrix().set(camera.combined);
debugRenderer.getShapeRenderer().getProjectionMatrix().set(camera.combined); debugRenderer.getShapeRenderer().setProjectionMatrix(camera.combined);
batch.begin(); batch.begin();
renderer.draw(batch, skeleton); // Draw the skeleton images. renderer.draw(batch, skeleton); // Draw the skeleton images.

View File

@ -140,7 +140,7 @@ public class SimpleTest2 extends ApplicationAdapter {
// Configure the camera, SpriteBatch, and SkeletonRendererDebug. // Configure the camera, SpriteBatch, and SkeletonRendererDebug.
camera.update(); camera.update();
batch.getProjectionMatrix().set(camera.combined); batch.getProjectionMatrix().set(camera.combined);
debugRenderer.getShapeRenderer().getProjectionMatrix().set(camera.combined); debugRenderer.getShapeRenderer().setProjectionMatrix(camera.combined);
batch.begin(); batch.begin();
renderer.draw(batch, skeleton); // Draw the skeleton images. renderer.draw(batch, skeleton); // Draw the skeleton images.