90 :(NSNotification *)notification
91{
92 NSWindow *theWindow = (NSWindow *)[notification object];
93
94 if (theWindow == [view window]) {
95 CGFloat newBackingScaleFactor = [theWindow backingScaleFactor];
96 CGFloat oldBackingScaleFactor = [[[notification userInfo]
97 objectForKey:@"NSBackingPropertyOldScaleFactorKey"]
98 doubleValue];
99
100 if (newBackingScaleFactor != oldBackingScaleFactor) {
101
102 wxSizeEvent *event = new wxSizeEvent();
103
104
105
106
107 NSRect nsrect = [view bounds];
108 wxRect rect = wxRect(nsrect.origin.x, nsrect.origin.y, nsrect.size.width, nsrect.size.height);
109 event->SetRect(rect);
110 event->SetSize(rect.GetSize());
111 handler->QueueEvent(event);
112 }
113 }
114}