Skip to content

Commit 02883c1

Browse files
committed
LoginWindow: update debug output
1 parent e08bc7e commit 02883c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Applications/Login/LoginWindow.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ - (void)center
104104
NSLog(@"Screen size : %4.0f x %4.0f", screenSize.width, screenSize.height);
105105
}
106106

107-
NSLog(@"Display frame : %4.0f x %4.0f (%.0f, %.0f)",
107+
NSLog(@"Display frame : %4.0f x %4.0f (%4.0f, %4.0f)",
108108
displayRect.size.width, displayRect.size.height,
109109
displayRect.origin.x, displayRect.origin.y);
110-
111-
NSLog(@"Window frame : %4.0f, %4.0f (size: %.0f x %.0f)",
112-
windowRect.origin.x, windowRect.origin.y,
113-
windowRect.size.width, windowRect.size.height);
114-
110+
111+
NSLog(@"Window frame : %4.0f x %4.0f (%4.0f, %4.0f)",
112+
windowRect.size.width, windowRect.size.height,
113+
windowRect.origin.x, windowRect.origin.y);
114+
115115
// Calculate the new position of the window on display.
116116
newOrigin.x = displayRect.size.width/2 - windowRect.size.width/2;
117117
newOrigin.x += displayRect.origin.x;
@@ -120,7 +120,7 @@ - (void)center
120120
// displayRect is presented system(Xlib) coordiante system.
121121
// Convert newOrigin into OpenStep coordinate system (non-flipped).
122122
newOrigin.y = screenSize.height - (newOrigin.y + windowRect.size.height);
123-
NSLog(@"New origin : %4.0f, %4.0f", newOrigin.x, newOrigin.y);
123+
NSLog(@"New origin : (%4.0f, %4.0f)", newOrigin.x, newOrigin.y);
124124

125125
[self setFrameOrigin:newOrigin];
126126
}

0 commit comments

Comments
 (0)