Skip to content

Commit

Permalink
LoginWindow: update debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
trunkmaster committed Jan 3, 2025
1 parent e08bc7e commit 02883c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Applications/Login/LoginWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ - (void)center
NSLog(@"Screen size : %4.0f x %4.0f", screenSize.width, screenSize.height);
}

NSLog(@"Display frame : %4.0f x %4.0f (%.0f, %.0f)",
NSLog(@"Display frame : %4.0f x %4.0f (%4.0f, %4.0f)",
displayRect.size.width, displayRect.size.height,
displayRect.origin.x, displayRect.origin.y);
NSLog(@"Window frame : %4.0f, %4.0f (size: %.0f x %.0f)",
windowRect.origin.x, windowRect.origin.y,
windowRect.size.width, windowRect.size.height);

NSLog(@"Window frame : %4.0f x %4.0f (%4.0f, %4.0f)",
windowRect.size.width, windowRect.size.height,
windowRect.origin.x, windowRect.origin.y);

// Calculate the new position of the window on display.
newOrigin.x = displayRect.size.width/2 - windowRect.size.width/2;
newOrigin.x += displayRect.origin.x;
Expand All @@ -120,7 +120,7 @@ - (void)center
// displayRect is presented system(Xlib) coordiante system.
// Convert newOrigin into OpenStep coordinate system (non-flipped).
newOrigin.y = screenSize.height - (newOrigin.y + windowRect.size.height);
NSLog(@"New origin : %4.0f, %4.0f", newOrigin.x, newOrigin.y);
NSLog(@"New origin : (%4.0f, %4.0f)", newOrigin.x, newOrigin.y);

[self setFrameOrigin:newOrigin];
}
Expand Down

0 comments on commit 02883c1

Please sign in to comment.