static final void method2158(byte i) {
	anInt6256++;
	int i_0_ = 0;
	if (BitmapTable.aClass348_Sub51_3959 != null)
	    i_0_ = ((Class348_Sub51) BitmapTable.aClass348_Sub51_3959)
		       .aClass239_Sub23_7231.method1818(-32350);
	if (i == 56) {
	    if (i_0_ == 2) {
		int i_1_ = ((Class272.anInt3473 ^ 0xffffffff) >= -801
			    ? Class272.anInt3473 : 800);
		Class321.windowWidth = i_1_;
		Class348_Sub48.anInt7129 = (Class272.anInt3473 + -i_1_) / 2;
		int i_2_ = ((Class348_Sub22.anInt6857 ^ 0xffffffff) < -601
			    ? 600 : Class348_Sub22.anInt6857);
		Class348_Sub42_Sub8_Sub2.windowHeight = i_2_;
		Class335.anInt4167 = 0;
	    } else if ((i_0_ ^ 0xffffffff) != -2) {
		Class335.anInt4167 = 0;
		Class348_Sub42_Sub8_Sub2.windowHeight = Class348_Sub22.anInt6857;
		Class348_Sub48.anInt7129 = 0;
		Class321.windowWidth = Class272.anInt3473;
	    } else {
		int i_3_
		    = Class272.anInt3473 <= 1024 ? Class272.anInt3473 : 1024;
		Class348_Sub48.anInt7129 = (Class272.anInt3473 + -i_3_) / 2;
		int i_4_ = (Class348_Sub22.anInt6857 <= 768
			    ? Class348_Sub22.anInt6857 : 768);
		Class321.windowWidth = i_3_;
		Class335.anInt4167 = 0;
		Class348_Sub42_Sub8_Sub2.windowHeight = i_4_;
	    }
	}
    }