Repository navigation
Off-by-ones in windows/GDI window calculations - #13451
Merged
Merged
Conversation
crackwitz
force-pushed
the
gdi-off-by-one
branch
from
December 16, 2018 04:35
7149b56 to
1201b72
Compare
Contributor
Author
|
In fact, I would recommend setting |
mshabunin
reviewed
Dec 25, 2018
mshabunin
left a comment
Contributor
There was a problem hiding this comment.
Please rebase this PR to the 3.4 branch.
crackwitz
force-pushed
the
gdi-off-by-one
branch
from
December 25, 2018 16:49
7149b56 to
ddfab1b
Compare
Contributor
Author
|
I have no idea how to do this "properly". there is a lot of difference between master and 3.4. please bear with me. |
Check for "gutter" around displayed image. there was one row/column missing on the bottom/right. Might as well set gutter = 0?
crackwitz
force-pushed
the
gdi-off-by-one
branch
from
December 25, 2018 16:55
ddfab1b to
beba82b
Compare
Contributor
Author
|
if there's anything further I should do, please let me know. this level of working with git is still beyond me. |
mshabunin
approved these changes
Dec 26, 2018
opencv-pushbot
pushed a commit
that referenced
this pull request
Dec 26, 2018
Merged
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pullrequest changes
When looking closely, there's a gray "gutter" around the displayed image. Since it's just 1 pixel wide, it never showed up on the bottom and right borders between image and window chrome.
That gutter is now visible properly. Perhaps it would make sense to remove it entirely (set to zero in
icvCalcWindowRect). Previously that would have cut off the last row and column of an image.There has been no issue for this and it fixes no bugs (to my knowledge). This is purely cosmetic.