* Fix compile error

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8357 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 13 years ago
parent 8a247c8da4
commit a236c7d03b
  1. 13
      engine/src/desktop/com/jme3/system/awt/PaintMode.java
  2. 4
      engine/src/niftygui/com/jme3/niftygui/RenderFontJme.java

@ -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;
}

@ -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() {

Loading…
Cancel
Save