> Message: 1 > Date: Sat, 22 Feb 2020 14:24:40 +0100 > From: Gabriel Zachmann <[email protected] <mailto:[email protected]>> > To: "[email protected] <mailto:[email protected]>" > <[email protected] <mailto:[email protected]>> > Subject: Confusion about screen resolution > Message-ID: <[email protected] > <mailto:[email protected]>> > Content-Type: text/plain; charset=us-ascii > > When my screensaver gets invoked by the screensaver engine, it calls > - (id) initWithFrame: (NSRect) frameRect isPreview: (BOOL) preview > > Funny thing is, when I print the frameRect to the log, I get 1680 x 1050. > But my laptop screen really has 2880 x 1800! (That's what I get from "About > this Mac") > > I am running under Catalina 10.15.3. > > > Can any one please shed some light on this? > > Thanks a lot in advance. > Gab. >
Gab, I think you are confusing pixels and points. A pixel is an addressable light-emitting area on the screen. Your screen contains 2880 X 1800 pixels. But a typographical point is a unit of distance. There are 27 points per inch. (I.e., a typographical point is 0.0139 inches or 0.353 mm). Recalling that screen sizes are measured diagonally, the diagonal of a 1680pt X 1050pt rectangle is 1981pt (or 27 inches). I conclude that your Mac has a 27-inch screen at a resolution of 123 X 123 px/in. Cheers, Rick Aurbach 8233 Tulane Avenue St. Louis, MO 63132 eMail: [email protected] Phone: 314/721-7987 H-A-R-D-W-A-R-E (noun) “The part of a computer you can kick." _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
