mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
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:
parent
d964b3c7ec
commit
2ce20fee08
3 changed files with 29 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue