if(h == 0) {
if(h <= 0) {
    protected void initWidgetProjection(Widget widget) {        WidgetViewRectangle v;        Widget p = widget.getWidgetParent();        if (p != null) {            v = p.getViewRectangle();        } else {            v = widget.getViewRectangle();        }        int x = (int) v.getMinX();        int y = (int) v.getMinY();        int w = (int) v.getWidth();        int h = (int) v.getHeight();                if(w == 0) {            w = 1;        }                if(h == 0) {            h = 1;        }        //int screenWidth = DisplaySystem.getDisplaySystem().getWidth();        //int screenHeight = DisplaySystem.getDisplaySystem().getHeight();        //GL11.glViewport(0, 0, screenWidth, screenHeight);        GL11.glViewport(x, y, w, h);        GL11.glEnable(GL11.GL_SCISSOR_TEST);        GL11.glScissor(x, y, w, h);        GL11.glMatrixMode(GL11.GL_PROJECTION);        GL11.glPushMatrix();        GL11.glLoadIdentity();        //GLU.gluOrtho2D(0, screenWidth, 0, screenHeight);        GL11.glOrtho(0, w, 0, h, -1, 1);        GL11.glMatrixMode(GL11.GL_MODELVIEW);        GL11.glPushMatrix();        GL11.glLoadIdentity();    }