From e46fc1dc77137b4511680b68d24aaeb5a7d82d1f Mon Sep 17 00:00:00 2001 From: daboe01 Date: Wed, 3 Sep 2025 08:24:19 +0300 Subject: [PATCH] fixed: blue box was invisible --- Tests/Manual/CPAnimationContextTest/AppController.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Manual/CPAnimationContextTest/AppController.j b/Tests/Manual/CPAnimationContextTest/AppController.j index f65d6f8cd..f13fad133 100644 --- a/Tests/Manual/CPAnimationContextTest/AppController.j +++ b/Tests/Manual/CPAnimationContextTest/AppController.j @@ -21,17 +21,17 @@ - (void)applicationDidFinishLaunching:(CPNotification)aNotification { - theWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0, 0, 800, 600) styleMask:CPBorderlessBridgeWindowMask]; + theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask]; var contentView = [theWindow contentView]; [theWindow orderFront:self]; // Create a view that we can animate for the new tests. - _initialTestViewFrame = CGRectMake(350, 450, 50, 50); + _initialTestViewFrame = CGRectMake(90, 350, 50, 50); _testView = [[CPView alloc] initWithFrame:_initialTestViewFrame]; // Use CALayer to give it a background color so we can see it. [_testView setWantsLayer:YES]; - [[_testView layer] setBackgroundColor:[[CPColor blueColor] CGColor]]; + [_testView setBackgroundColor:[CPColor blueColor]]; [contentView addSubview:_testView]; [self setup];