From adac80d4a1cbfe36b2bc90b3f778774b2fc788aa Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 28 Jan 2016 08:48:33 -0500 Subject: [PATCH] ecere/gui/Window: (#789) Fixed snapshot extent using native decorations --- ecere/src/gui/Window.ec | 11 +++++++---- eda/libeda/src/ers.ec | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ecere/src/gui/Window.ec b/ecere/src/gui/Window.ec index c0dd965..7000799 100644 --- a/ecere/src/gui/Window.ec +++ b/ecere/src/gui/Window.ec @@ -7263,10 +7263,13 @@ public: clip.bottom += absPosition.y; } - clip.left += decorations ? 0 : clientStart.x; - clip.top += decorations ? 0 : clientStart.y; - clip.right += decorations ? 0 : clientStart.x; - clip.bottom += decorations ? 0 : clientStart.y; + if(!nativeDecorations) + { + clip.left += decorations ? 0 : clientStart.x; + clip.top += decorations ? 0 : clientStart.y; + clip.right += decorations ? 0 : clientStart.x; + clip.bottom += decorations ? 0 : clientStart.y; + } if(display && display.flags.flipping) { diff --git a/eda/libeda/src/ers.ec b/eda/libeda/src/ers.ec index 8f63484..6548f86 100644 --- a/eda/libeda/src/ers.ec +++ b/eda/libeda/src/ers.ec @@ -536,7 +536,7 @@ public class PrintedReport : ReportDestination if(pageCount && display) display.NextPage(); lastPage = page; - page.anchor = { left = 0, top = 0, right = 0, bottom = 0}; + page.anchor = { left = 0, top = 0, right = 0, bottom = 0 }; page.master = this; page.parent = this; pageCount++; -- 1.8.3.1