internal void setClip(int x, int y, int w, int h) { this.clip = new Rectangle(x, y, w, h); x = JMath.max(0, x); y = JMath.max(0, y); w = x + w > 320 ? 320 - x : w; h = y + h > 533 ? 533 - y : h; JavaLib.GraphicsDevice.ScissorRectangle = new Rectangle(x, y, w, h); }