mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-21 04:43:55 +12:00
Mergedown (translation and bugfix).
This commit is contained in:
commit
9ae2778838
|
@ -143,10 +143,7 @@ namespace OnTopReplica {
|
|||
protected override void OnResizeEnd(EventArgs e) {
|
||||
base.OnResizeEnd(e);
|
||||
|
||||
//If locked in position, move accordingly
|
||||
if (PositionLock.HasValue) {
|
||||
this.SetScreenPosition(PositionLock.Value);
|
||||
}
|
||||
RefreshScreenLock();
|
||||
}
|
||||
|
||||
protected override void OnActivated(EventArgs e) {
|
||||
|
@ -177,6 +174,7 @@ namespace OnTopReplica {
|
|||
if (!IsFullscreen) {
|
||||
int change = (int)(e.Delta / 6.0); //assumes a mouse wheel "tick" is in the 80-120 range
|
||||
AdjustSize(change);
|
||||
RefreshScreenLock();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,16 @@ namespace OnTopReplica {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Refreshes window position if in lock mode.
|
||||
/// </summary>
|
||||
private void RefreshScreenLock() {
|
||||
//If locked in position, move accordingly
|
||||
if (PositionLock.HasValue) {
|
||||
this.SetScreenPosition(PositionLock.Value);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue