Modify ↓
Opened 8 years ago
Closed 8 years ago
#3545 closed Bug (No Bug)
Incorrect conversion of Pos to Rect and vice versa
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | Standard UDFs | |
Version: | 3.3.14.2 | Severity: | None |
Keywords: | Cc: |
Description
Functions _WinAPI_CreateRectEx and _WinAPI_GetPosFromRect return incorrect results.
_WinAPI_CreateRectEx must reduce the result by one for Right and Bottom. _WinAPI_GetPosFromRect must increase the result by one for Width and Height.
Attachments (0)
Change History (2)
comment:1 Changed 8 years ago by anonymous
comment:2 Changed 8 years ago by BrewManNH
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Seems like it no bug.
RECT structure
By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle.