[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Add WindowEventMetricChange support for macOS (iOS). Fix a nasty typo in iOS (0361fc3)
Tobias Pape
notifications at github.com
Tue Oct 13 15:30:40 UTC 2020
The `case ... : ` is missing.
I would have expected:
```C
switch (windowType) {
case SOMETHING:
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;
}
```
but there is no `case` _me puzzled_
--
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-43207555
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201013/f1c8a095/attachment.html>
More information about the Vm-dev
mailing list