瀏覽代碼

TestPostWater: avoid using the deprecated BitmapText constructor (#1766)

Stephen Gold 3 年之前
父節點
當前提交
475abdf707
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jme3-examples/src/main/java/jme3test/water/TestPostWater.java

+ 2 - 2
jme3-examples/src/main/java/jme3test/water/TestPostWater.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2021 jMonkeyEngine
+ * Copyright (c) 2009-2022 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -290,7 +290,7 @@ public class TestPostWater extends SimpleApplication {
     }
     }
     
     
     protected void setText(int x, int y, String text) {
     protected void setText(int x, int y, String text) {
-        BitmapText txt2 = new BitmapText(guiFont, false);
+        BitmapText txt2 = new BitmapText(guiFont);
         txt2.setText(text);
         txt2.setText(text);
         txt2.setLocalTranslation(x, cam.getHeight() - y, 0);
         txt2.setLocalTranslation(x, cam.getHeight() - y, 0);
         txt2.setColor(ColorRGBA.Red);
         txt2.setColor(ColorRGBA.Red);