Skip to content
forked from BOINC/boinc

Commit

Permalink
Fix comments to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Fenton committed Nov 11, 2019
1 parent 2acb9b7 commit a918b54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions api/macglutfix.m
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ - (void)sendIOSurfaceMachPortToClients:(uint32_t)index withMachPort:(mach_port_t
@end


// Under OS 10.15 Catalina, OpenGL apps apparently use window dimensions
// based on the number of backing store pixels. That is, they double the
// window dimensions for Retina displays (which have two pixels per point.)
// But OpenGL apps running under earlier versions of OS X don't. As a
// result, Catalina displays BOINC graphics at half width and height
// unless we compensate in our code.
// This code is part of my attempt to ensure that BOINC graphics apps are
// displayed properly on different versions of OS X. See also
// OpenGL apps built under Xcode 11 apparently use window dimensions based
// on the number of backing store pixels. That is, they double the window
// dimensiona for Retina displays (which have two pixels per point.) But
// OpenGL apps built under earlier versions of Xcode don't.
// Catalina assumes OpenGL apps work as built under Xcode 11, so it displays
// older builds at half width and height, unless we compensate in our code.
// This code is part of my attempt to ensure that BOINC graphics apps built on
// all versions of Xcode work proprly on different versions of OS X. See also
// [BOINC_Saver_ModuleView initWithFrame:] in clientscr/Mac_Saver_ModuleCiew.m
//
void MacPassOffscreenBufferToScreenSaver() {
Expand Down
16 changes: 8 additions & 8 deletions clientscr/Mac_Saver_ModuleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ - (id)initWithFrame:(NSRect)frame isPreview:(BOOL)isPreview {
myIsPreview = isPreview;
}

// Under OS 10.15 Catalina, OpenGL apps apparently use window dimensions
// based on the number of backing store pixels. That is, they double the
// window dimensions for Retina displays (which have two pixels per point.)
// But OpenGL apps running under earlier versions of OS X don't. As a
// result, Catalina displays BOINC graphics at half width and height,
// unless we compensate in our code.
// This code is part of my attempt to ensure that BOINC graphics apps are
// displayed properly on different versions of OS X. See also
// OpenGL apps built under Xcode 11 apparently use window dimensions based
// on the number of backing store pixels. That is, they double the window
// dimensiona for Retina displays (which have two pixels per point.) But
// OpenGL apps built under earlier versions of Xcode don't.
// Catalina assumes OpenGL apps work as built under Xcode 11, so it displays
// older builds at half width and height, unless we compensate in our code.
// This code is part of my attempt to ensure that BOINC graphics apps built on
// all versions of Xcode work proprly on different versions of OS X. See also
// MacPassOffscreenBufferToScreenSaver() in lib/magglutfix.m for more info.
//
if (gIsCatalina) {
Expand Down

0 comments on commit a918b54

Please sign in to comment.