// 0.5 - 0.85, void PS3_setScreenOrientation(int vertical, int scanlines, float stretch1, float stretch2) { if (vertical) { // by default sretch video to 40% of the screen in X axis (compensate output to wide screens) scaler.setX(stretch1); scaler.setY(1.0f); scaler.setZ(1.0f); //apply scale setSizeH(-1.0f); //actually this will modify the X scale ratio to 0.49 scanline.setX(111.0f); //scanline density scanline.setW(scanlines ? 0.2f : 0.0f); //scanline type -> vertical lines } else { // by default sretch video to 90% of the screen in X axis (compensate output to wide screens) scaler.setX(stretch2); scaler.setY(1.0f); scaler.setZ(1.0f); //apply scale setSizeH(-1.0f); //actually this will modify the X scale ratio to 0.84 scanline.setX(169.7f); //density scanline.setW(scanlines ? 0.1f : 0.0f); //scanline type -> horizontal lines } }
void PackRect::setSize(int width, int height) { setSizeH(height); setSizeW(width); }