* Fix compile error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8357 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
sha..rd 2011-10-05 01:51:04 +00:00
parent 8a247c8da4
commit a236c7d03b
2 changed files with 4 additions and 13 deletions

View File

@ -1,16 +1,7 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.system.awt;
/**
*
* @author normenhansen
*/
public enum PaintMode {
Accelerated,
OnRequest,
Repaint;
Repaint,
OnRequest;
}

View File

@ -104,8 +104,8 @@ public class RenderFontJme implements RenderFont {
* @param size font size
* @return width of the character or null when no information for the character is available
*/
public Integer getCharacterAdvance(final char currentCharacter, final char nextCharacter, final float size) {
return Integer.valueOf( Math.round(font.getCharacterAdvance(currentCharacter, nextCharacter, size)) );
public int getCharacterAdvance(final char currentCharacter, final char nextCharacter, final float size) {
return Math.round(font.getCharacterAdvance(currentCharacter, nextCharacter, size));
}
public void dispose() {