summaryrefslogtreecommitdiffstats
path: root/NativeApp/Apple
diff options
context:
space:
mode:
authorAssiduous <61806567+TheMostDiligent@users.noreply.github.com>2021-03-18 05:06:50 +0000
committerGitHub <noreply@github.com>2021-03-18 05:06:50 +0000
commit1de4b5caf9a2f779b2a160c210b425e1c63bb1a9 (patch)
treefcac53b85a8f10b5a6a698cdc7c3ccd21f700625 /NativeApp/Apple
parentUpdated readme (diff)
parentFix misc. typos (diff)
downloadDiligentTools-1de4b5caf9a2f779b2a160c210b425e1c63bb1a9.tar.gz
DiligentTools-1de4b5caf9a2f779b2a160c210b425e1c63bb1a9.zip
Merge pull request #21 from luzpaz/typos
Fix misc. typos
Diffstat (limited to 'NativeApp/Apple')
-rw-r--r--NativeApp/Apple/Source/Classes/OSX/GLView.mm4
-rw-r--r--NativeApp/Apple/Source/Classes/OSX/WindowController.mm2
-rw-r--r--NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm2
3 files changed, 4 insertions, 4 deletions
diff --git a/NativeApp/Apple/Source/Classes/OSX/GLView.mm b/NativeApp/Apple/Source/Classes/OSX/GLView.mm
index d4aef78..a942252 100644
--- a/NativeApp/Apple/Source/Classes/OSX/GLView.mm
+++ b/NativeApp/Apple/Source/Classes/OSX/GLView.mm
@@ -90,7 +90,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink,
{
[super prepareOpenGL];
- // Application must be initialized befor display link is started
+ // Application must be initialized before display link is started
[self initGL];
CVDisplayLinkRef displayLink;
@@ -148,7 +148,7 @@ static CVReturn MyDisplayLinkCallback(CVDisplayLinkRef displayLink,
// cost of framerate and battery life due to the GPU needing to render more
// pixels.
- // Any calculations the renderer does which use pixel dimentions, must be
+ // Any calculations the renderer does which use pixel dimensions, must be
// in "retina" space. [NSView convertRectToBacking] converts point sizes
// to pixel sizes. Thus the renderer gets the size in pixels, not points,
// so that it can set it's viewport and perform and other pixel based
diff --git a/NativeApp/Apple/Source/Classes/OSX/WindowController.mm b/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
index e3f7923..5904f6c 100644
--- a/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
+++ b/NativeApp/Apple/Source/Classes/OSX/WindowController.mm
@@ -118,7 +118,7 @@
// this controller (self)
[self setWindow:[self standardWindow]];
- // Set the content of the orginal window to the view
+ // Set the content of the original window to the view
[[self window] setContentView: [self fullscreenWindow].contentView];
// Show the window and make it the key window for input
diff --git a/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm b/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
index 84d1b01..3e75910 100644
--- a/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
+++ b/NativeApp/Apple/Source/Classes/iOS/AppViewBase.mm
@@ -85,7 +85,7 @@
// Set it to our _animationFrameInterval
[_displayLink setPreferredFramesPerSecond:_preferredFramesPerSecond];
- // Have the display link run on the default runn loop (and the main thread)
+ // Have the display link run on the default run loop (and the main thread)
[_displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[super startAnimation];