mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
(YDK) amend previous commit, call parent method
This commit is contained in:
parent
08e394f681
commit
e64a071e39
1 changed files with 9 additions and 10 deletions
|
|
@ -605,6 +605,7 @@
|
||||||
- (void) setNeedsDisplay:(BOOL)yn
|
- (void) setNeedsDisplay:(BOOL)yn
|
||||||
{
|
{
|
||||||
if (GDK_WINDOW_DESTROYED (gdk_window)) {
|
if (GDK_WINDOW_DESTROYED (gdk_window)) {
|
||||||
|
[super setNeedsDisplay:yn];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -642,8 +643,14 @@
|
||||||
|
|
||||||
- (void) setNeedsDisplayInRect:(NSRect)rect
|
- (void) setNeedsDisplayInRect:(NSRect)rect
|
||||||
{
|
{
|
||||||
GdkWindowObject *private;
|
GdkWindowObject* private = GDK_WINDOW_OBJECT (gdk_window);
|
||||||
GdkWindowImplQuartz *impl;
|
GdkWindowImplQuartz* impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
|
||||||
|
|
||||||
|
if (!impl) {
|
||||||
|
[super setNeedsDisplayInRect:rect];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
GdkRectangle r = { rect.origin.x, rect.origin.y, rect.size.width, rect.size.height };
|
GdkRectangle r = { rect.origin.x, rect.origin.y, rect.size.width, rect.size.height };
|
||||||
|
|
||||||
if (r.width >= 2147483647 || r.height >= 2147483647) {
|
if (r.width >= 2147483647 || r.height >= 2147483647) {
|
||||||
|
|
@ -653,13 +660,6 @@
|
||||||
r.width = bounds.size.width;
|
r.width = bounds.size.width;
|
||||||
r.height = bounds.size.height;
|
r.height = bounds.size.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
private = GDK_WINDOW_OBJECT (gdk_window);
|
|
||||||
impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
|
|
||||||
|
|
||||||
if (!impl) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
GDK_NOTE (EVENTS, g_print ("setNeedsDisplayInRect, current NDR %p\n", impl->needs_display_region));
|
GDK_NOTE (EVENTS, g_print ("setNeedsDisplayInRect, current NDR %p\n", impl->needs_display_region));
|
||||||
|
|
||||||
|
|
@ -678,7 +678,6 @@
|
||||||
printf ("\t%d,%d %d x %d\n", rects[n].x, rects[n].y, rects[n].width, rects[n].height);
|
printf ("\t%d,%d %d x %d\n", rects[n].x, rects[n].y, rects[n].width, rects[n].height);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
[super setNeedsDisplayInRect:rect];
|
[super setNeedsDisplayInRect:rect];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue