Cleanup of some animation code

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2438 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-24 08:22:37 +00:00
commit 2ce20fee08
3 changed files with 29 additions and 29 deletions

View file

@ -62,9 +62,9 @@ namespace GreenshotPlugin.Controls {
}
/// <summary>
/// Check if we need to optimize for RDP / Terminal Server sessions
/// Check if we are in a Terminal Server session OR need to optimize for RDP / remote desktop connections
/// </summary>
protected bool OptimizeForTerminalServer {
protected bool isTerminalServerSession {
get {
return coreConfiguration.OptimizeForRDP || SystemInformation.TerminalServerSession;
}
@ -75,9 +75,9 @@ namespace GreenshotPlugin.Controls {
/// </summary>
/// <param name="milliseconds"></param>
/// <returns>Number of frames, 1 if in Terminal Server Session</returns>
protected int CalculateFrames(int milliseconds) {
protected int FramesForMillis(int milliseconds) {
// If we are in a Terminal Server Session we return 1
if (OptimizeForTerminalServer) {
if (isTerminalServerSession) {
return 1;
}
return milliseconds / VRefresh;