From a236c7d03b0baaf3f8f36f07537f4b65e9ab9666 Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Wed, 5 Oct 2011 01:51:04 +0000 Subject: [PATCH] * Fix compile error git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8357 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/desktop/com/jme3/system/awt/PaintMode.java | 13 ++----------- .../niftygui/com/jme3/niftygui/RenderFontJme.java | 4 ++-- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/engine/src/desktop/com/jme3/system/awt/PaintMode.java b/engine/src/desktop/com/jme3/system/awt/PaintMode.java index e9f410dba..66938ddc5 100644 --- a/engine/src/desktop/com/jme3/system/awt/PaintMode.java +++ b/engine/src/desktop/com/jme3/system/awt/PaintMode.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; } diff --git a/engine/src/niftygui/com/jme3/niftygui/RenderFontJme.java b/engine/src/niftygui/com/jme3/niftygui/RenderFontJme.java index ade68ad64..0bf421eaa 100644 --- a/engine/src/niftygui/com/jme3/niftygui/RenderFontJme.java +++ b/engine/src/niftygui/com/jme3/niftygui/RenderFontJme.java @@ -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() {