View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016073Runner[All Projects] FunctionsPublic2014-10-03 10:332016-11-29 17:26
Assigned ToMike Rennie 
PriorityHighSeverityC - GeneralReproducibility100%
PlatformWindowsOS OS Version
Summary0016073: Functions: Imprecise draw_arrow()
DescriptionI have an object that draws an arrow based on some variables, this is the code:


When the arrow faces in some directions, it draws fine. But when it faces some other directions, the arrowhead is not exactly where it should be. It is shifted one or two pixels off the line, to the point that that you can actually see that the arrow has two ends, one where the arrowhead ends and one where the line ends. I uploaded a screenshot here: [^]
Additional InformationOriginal helpdesk ticket: [^]
1.4 Version1.4.1451
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files? file icon drawArrow.gmz [^] (904,085 bytes) 2014-10-03 10:34

- Relationships

-  Notes
grix (Reporter)
2014-10-04 20:51

I think there is a problem with drawing lines in general. I have noticed similar problems, when for example trying to draw a circle at the tip of a line, or drawing a line by the edge of a triangle etc.
Erik Leppen (Updater)
2014-10-10 16:15

These problems with one-pixels offsets are ancient, by the way. It's long overdue that someone looks at them and fixes all of them once and for all.

For example, drawing a rectangle gives a different result than drawing a primitive using the same numbers for the vertices. I think these should be the same.
grix (Reporter)
2015-01-12 16:59

Any progress on this?

It might be worth mentioning that this bug doesn't seem to be present in HTML5 exports, so it is platform dependent.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker