pictureflow-qt/pictureflow.cpp
// readjust the settings, call this when slide dimension is changed
readjust the settings, call this when slide dimension is changed
readjust the settings call this when slide dimension is changed
void PictureFlowState::reposition()
{
    angle = 70 * IANGLE_MAX / 360;  
    offsetX = slideWidth / 2 * (PFREAL_ONE - fcos(angle));
    offsetY = slideWidth / 2 * fsin(angle);
    offsetX += slideWidth * PFREAL_ONE;
    offsetY += slideWidth * PFREAL_ONE / 4;
    spacing = 40;
}
void PictureFlowState :: reposition ( ) { angle = 70 * IANGLE_MAX / 360 ; offsetX = slideWidth / 2 * ( PFREAL_ONE - fcos ( angle ) ) ; offsetY = slideWidth / 2 * fsin ( angle ) ; offsetX += slideWidth * PFREAL_ONE ; offsetY += slideWidth * PFREAL_ONE / 4 ; spacing = 40 ; }
readjust the settings, call this when slide dimension is changed
readjust the settings call this when slide dimension is changed
// approx. 70 degrees tilted