Update of /cvsroot/jake2/jake2/src/jake2/client
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10291/src/jake2/client
Modified Files:
viddef_t.java
Log Message:
changes to handle resizable screens
Index: viddef_t.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/client/viddef_t.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** viddef_t.java 7 Jul 2004 19:58:52 -0000 1.1.1.1
--- viddef_t.java 2 Mar 2008 14:53:46 -0000 1.2
***************
*** 17,28 ****
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! */
// Created on 20.11.2003 by RST.
- // $Id$
-
package jake2.client;
public class viddef_t {
! public int width, height;
}
--- 17,61 ----
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! */
// Created on 20.11.2003 by RST.
package jake2.client;
public class viddef_t {
! private int width;
! private int height;
! private int newWidth;
! private int newHeight;
!
! /**
! * This method doesn't affect <code>width</code> and <code>height</code>
! * directly. The new values will be active after an <code>update()</code>
! * call.
! *
! * @param width
! * the visible render screen width.
! * @param height
! * the visible render screen height.
! */
! public synchronized void setSize(int width, int height) {
! newWidth = width;
! newHeight = height;
! }
!
! /**
! * Updates the buffered <code>width</code> and <code>height</code>. The
! * method should be called once at the beginning of a frame.
! */
! public synchronized void update() {
! width = newWidth;
! height = newHeight;
! }
!
! public int getWidth() {
! return width;
! }
!
! public int getHeight() {
! return height;
! }
}
|