X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Fgui%2FtextEditorComponent%2FTextEditComponent.java;h=8e69c95d538ca0c637d657f2dd3d916c6bff905d;hb=2ba2ce636354885e669e9e3fbb97226025e5af45;hp=7262d21cf9f05b486e3eb0d2e954da1a559c3874;hpb=afdebf8f4f532ed5b456040c6c481f3cfbf8d236;p=sixth-3d.git diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextEditComponent.java b/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextEditComponent.java index 7262d21..8e69c95 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextEditComponent.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/gui/textEditorComponent/TextEditComponent.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine. Copyright ©2012-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License @@ -47,8 +47,8 @@ public class TextEditComponent extends GuiComponent implements ClipboardOwner { // initialize visual panel - final int columns = (int) (size.x / TextCanvas.FONT_CHAR_WIDTH); - final int rows = (int) (size.y / TextCanvas.FONT_CHAR_HEIGHT); + final int columns = (int) (size.x / TextCanvas.FONT_CHAR_WIDTH_PIXELS); + final int rows = (int) (size.y / TextCanvas.FONT_CHAR_HEIGHT_PIXELS); textCanvas = new TextCanvas(new Transform(), new TextPointer(rows, columns), Color.WHITE, colorConfig.normalBack);