mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
BUG-2097: Rollback of the change BUG-1965, we need to see what we do with this. For now the crop can be configured in the configuration: Win10BorderCrop
Also forgot to update the GreenshotPlugin.csproj, as a file was added.
This commit is contained in:
parent
96b92df495
commit
de2e92c7b6
3 changed files with 6 additions and 2 deletions
|
@ -770,7 +770,7 @@ namespace GreenshotPlugin.Core {
|
|||
{
|
||||
// Somehow DWM doesn't calculate it corectly, there is a 1 pixel border around the capture
|
||||
// Remove this border, currently it's fixed but TODO: Make it depend on the OS?
|
||||
windowRect.Inflate(-1, -1);
|
||||
windowRect.Inflate(Conf.Win10BorderCrop);
|
||||
_previousWindowRectangle = windowRect;
|
||||
_lastWindowRectangleRetrieveTime = now;
|
||||
return windowRect;
|
||||
|
@ -1001,7 +1001,7 @@ namespace GreenshotPlugin.Core {
|
|||
// TODO: Also 8.x?
|
||||
if (Environment.OSVersion.IsWindows10())
|
||||
{
|
||||
captureRectangle.Inflate(-1, -1);
|
||||
captureRectangle.Inflate(Conf.Win10BorderCrop);
|
||||
}
|
||||
|
||||
if (autoMode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue