@ -656,7 +656,9 @@ KDE_EXPORT void RandRScreen::load(TDEConfig& config)
if ( proposeSize ( sizeIndex ( TQSize ( config . readNumEntry ( " width " , currentPixelWidth ( ) ) , config . readNumEntry ( " height " , currentPixelHeight ( ) ) ) ) ) )
if ( proposeSize ( sizeIndex ( TQSize ( config . readNumEntry ( " width " , currentPixelWidth ( ) ) , config . readNumEntry ( " height " , currentPixelHeight ( ) ) ) ) ) )
proposeRefreshRate ( refreshRateHzToIndex ( proposedSize ( ) , config . readNumEntry ( " refresh " , currentRefreshRate ( ) ) ) ) ;
proposeRefreshRate ( refreshRateHzToIndex ( proposedSize ( ) , config . readNumEntry ( " refresh " , currentRefreshRate ( ) ) ) ) ;
proposeRotation ( rotationDegreeToIndex ( config . readNumEntry ( " rotation " , 0 ) ) + ( config . readBoolEntry ( " reflectX " ) ? ReflectX : 0 ) + ( config . readBoolEntry ( " reflectY " ) ? ReflectY : 0 ) ) ;
proposeRotation ( rotationDegreeToIndex ( config . readNumEntry ( " rotation " , 0 ) )
| ( config . readBoolEntry ( " reflectX " ) ? ReflectX : 0 )
| ( config . readBoolEntry ( " reflectY " ) ? ReflectY : 0 ) ) ;
}
}
KDE_EXPORT void RandRScreen : : save ( TDEConfig & config ) const
KDE_EXPORT void RandRScreen : : save ( TDEConfig & config ) const
@ -666,8 +668,8 @@ KDE_EXPORT void RandRScreen::save(TDEConfig& config) const
config . writeEntry ( " height " , currentPixelHeight ( ) ) ;
config . writeEntry ( " height " , currentPixelHeight ( ) ) ;
config . writeEntry ( " refresh " , refreshRateIndexToHz ( currentSize ( ) , currentRefreshRate ( ) ) ) ;
config . writeEntry ( " refresh " , refreshRateIndexToHz ( currentSize ( ) , currentRefreshRate ( ) ) ) ;
config . writeEntry ( " rotation " , rotationIndexToDegree ( currentRotation ( ) ) ) ;
config . writeEntry ( " rotation " , rotationIndexToDegree ( currentRotation ( ) ) ) ;
config . writeEntry ( " reflectX " , ( bool ) ( currentRotation ( ) & Reflect Mask) = = ReflectX ) ;
config . writeEntry ( " reflectX " , ( bool ) ( currentRotation ( ) & Reflect X) ) ;
config . writeEntry ( " reflectY " , ( bool ) ( currentRotation ( ) & Reflect Mask) = = ReflectY ) ;
config . writeEntry ( " reflectY " , ( bool ) ( currentRotation ( ) & Reflect Y) ) ;
}
}
KDE_EXPORT RandRDisplay : : RandRDisplay ( )
KDE_EXPORT RandRDisplay : : RandRDisplay ( )