/*
 * This file is part of libbluray
 * Copyright (C) 2010  William Hahne
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see
 * <http://www.gnu.org/licenses/>.
 */

package org.havi.ui;

public class HScreenDimension {
    public HScreenDimension(float width, float height) {
        this.width = width;
        this.height = height;
    }

    public void setSize(float width, float height) {
        this.width = width;
        this.height = height;
    }

    public float width;
    public float height;
}

@@ -869,56 +869,30 @@
     
-this.width = width;%0A        this.height = height
+setSize(width, height)
 ;%0A  
@@ -941,32 +941,138 @@
 float height) %7B%0A
+        if (width %3C 0.0f)%0A            width = 0.0f;%0A        if (height %3C 0.0f)%0A            height = 0.0f;%0A
         this.wid

validate width and height