chiark / gitweb /
GNUstep compatibility: stop using the API feature isFlipped/setFlipped
authorSimon Tatham <anakin@pobox.com>
Sun, 6 May 2012 14:01:35 +0000 (14:01 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 6 May 2012 14:01:35 +0000 (14:01 +0000)
commitcdd53f182d40af6acb45d42d8fd6d857d9aeab13
tree7cdf7c45e3d0a897ce2bf1b2c5e8b69d0b297890
parent9d3c8fbde0c39ed2be33008fe81accc149f3325a
GNUstep compatibility: stop using the API feature isFlipped/setFlipped
to translate y-coordinates from the default of up-from-bottom to the
down-from-top expected by these puzzles, because it doesn't work right
on GNUstep. Instead, we run the API in its default mode (probably a
more robust choice anyway) and translate coordinates manually in the
front end.

In the process, I've separated the processButton: method into one for
mouse buttons and one for keys, since that was the easiest way to
ensure the coordinates passed to the mid-end for the latter are -1,-1
_after_ translation rather than before.

[originally from svn r9502]
osx.m