Commit 825b7ff6 authored by Denis Budyak's avatar Denis Budyak
Browse files

Поменял ToggleFullScreen, чтобы работало для 2x зума (при обычном размере экрана не сработает)

parent 5cff779e
......@@ -1639,15 +1639,15 @@ BEGIN {EXCLUSIVE}
manager.lock.AcquireWrite;
window := manager.GetFocusOwner();
IF (window.flags * {WMWindowManager.FlagNavigation, WMWindowManager.FlagHidden, WMWindowManager.FlagNoResizing} = {}) THEN
IF (window.GetWidth() = width) & (window.GetHeight() = height) THEN
IF (window.GetWidth() = ENTIER(width/2)) & (window.GetHeight() = ENTIER(height/2)) THEN
manager.SetWindowPos(window, window.normalBounds.l, window.normalBounds.t);
newWidth := window.normalBounds.r - window.normalBounds.l;
newHeight := window.normalBounds.b - window.normalBounds.t;
ELSE
window.normalBounds := window.bounds;
manager.SetWindowPos(window, ENTIER(viewport.range.l), ENTIER(viewport.range.t));
newWidth := width;
newHeight := height;
newWidth := ENTIER(width/2);
newHeight := ENTIER(height/2);
END;
manager.SetWindowSize(window, newWidth, newHeight);
window.Resized(newWidth, newHeight);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment