Bug 37244 - XTranslateCoordinates takes int arguments but clamps to short
Summary: XTranslateCoordinates takes int arguments but clamps to short
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: x12
Depends on:
Blocks:
 
Reported: 2011-05-15 22:11 UTC by Campbell Barton
Modified: 2011-10-09 11:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Campbell Barton 2011-05-15 22:11:27 UTC
The input of XTranslateCoordinates are ints however internally the values are clamped to shorts.

From looking at the source code this is intentional however its really not useful when getting offscreen coords.

Reported as a bug in blender.
http://projects.blender.org/tracker/index.php?func=detail&aid=27358&group_id=9&atid=498
Comment 1 Alan Coopersmith 2011-05-15 23:59:07 UTC
The X protocol defines coordinates as signed 16 bit intergers.
Changing this would require a protocol bump, to X12. as discussed at:
   http://wiki.x.org/wiki/Development/X12#A15bitcoordinatelimit
but no one is seriously working on that.
Comment 2 Jeremy Huddleston Sequoia 2011-10-09 02:14:46 UTC
Closing as "WONTFIX" ... this is documented for X12 if that ever happens.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.