[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Add WindowEventMetricChange support for macOS (iOS). Fix a nasty typo in iOS (0361fc3)
Eliot Miranda
notifications at github.com
Tue Oct 13 15:17:25 UTC 2020
I *think* you're being misled by git diffs. here's the actual switch in the source
``` switch (windowType) {
NSRect frame = [window frame];
NSRect screen = [[window screen] frame];
evt.value1 = frame.origin.x;
evt.value2 = screen.size.height - (frame.size.height + frame.origin.y);
evt.value3 = frame.size.width;
evt.value4 = frame.size.height;
break;
default:
evt.value1 = 0;
evt.value2 = 0;
evt.value3 = 0;
evt.value4 = 0;
}```
That's quite regular, right? It's wrong, because the image wants left/top/right/bottom, not left/top/width/height, but... :-)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/0361fc33d5f72b153b098f6400bad9b664a2625f#commitcomment-43207067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201013/2b5c8ade/attachment.html>
More information about the Vm-dev
mailing list