Minor bugfixes

Removed redundant method call from drawDebugSpecial
Fixed issue where resizing MapRenderer was not forcing update
This commit is contained in:
Collin Smith 2019-10-27 23:30:02 -07:00
parent 0c4c4a5fb1
commit 0a9b4c5b8e
2 changed files with 2 additions and 1 deletions

View File

@ -1105,7 +1105,7 @@ public class MapRenderer {
batch.begin();
batch.setShader(null);
BitmapFont font = Riiablo.fonts.consolas12;
String str = String.format(String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value));
String str = String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value);
GlyphLayout layout = new GlyphLayout(font, str, 0, str.length(), font.getColor(), 0, Align.center, false, null);
font.draw(batch, layout,
px + Tile.WIDTH50,

View File

@ -228,6 +228,7 @@ public class MapViewer extends ApplicationAdapter {
return true;
case Input.Keys.ALT_LEFT:
mapRenderer.resize();
mapRenderer.update(true);
return true;
case Input.Keys.F1:
drawCrosshair = !drawCrosshair;