Modify ↓
Opened 9 years ago
Closed 9 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 by , 9 years ago
comment:2 by , 9 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
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.