diff options
Diffstat (limited to 'src/jake2/render/basic/Draw.java')
-rw-r--r-- | src/jake2/render/basic/Draw.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/render/basic/Draw.java b/src/jake2/render/basic/Draw.java index 52ee9fc..156431a 100644 --- a/src/jake2/render/basic/Draw.java +++ b/src/jake2/render/basic/Draw.java @@ -31,10 +31,11 @@ import jake2.qcommon.Com; import jake2.render.image_t; import jake2.util.Lib; -import java.awt.Dimension; import java.nio.ByteBuffer; import java.nio.IntBuffer; +import javax.media.nativewindow.util.Dimension; + /** * Draw * (gl_draw.c) @@ -123,8 +124,8 @@ public abstract class Draw extends Image { public void Draw_GetPicSize(Dimension dim, String pic) { image_t image = Draw_FindPic(pic); - dim.width = (image != null) ? image.width : -1; - dim.height = (image != null) ? image.height : -1; + dim.setWidth((image != null) ? image.width : -1); + dim.setHeight((image != null) ? image.height : -1); } /* |