Formatting
Related to #1417.
diff --git a/src/nsgl_context.h b/src/nsgl_context.h
index 76dd3e8..9f2ebb5 100755
--- a/src/nsgl_context.h
+++ b/src/nsgl_context.h
@@ -37,7 +37,7 @@
typedef struct _GLFWcontextNSGL
{
id pixelFormat;
- id object;
+ id object;
CVDisplayLinkRef displayLink;
atomic_int swapInterval;
int swapIntervalsPassed;
diff --git a/src/nsgl_context.m b/src/nsgl_context.m
index d834259..8d36753 100755
--- a/src/nsgl_context.m
+++ b/src/nsgl_context.m
@@ -38,18 +38,18 @@
CVOptionFlags* flagsOut,
void* userInfo)
{
- _GLFWwindow* window = (_GLFWwindow *) userInfo;
+ _GLFWwindow* window = (_GLFWwindow *) userInfo;
- const int setting = atomic_load(&window->context.nsgl.swapInterval);
- if (setting > 0)
- {
- [window->context.nsgl.swapIntervalCond lock];
- window->context.nsgl.swapIntervalsPassed++;
- [window->context.nsgl.swapIntervalCond signal];
- [window->context.nsgl.swapIntervalCond unlock];
- }
+ const int setting = atomic_load(&window->context.nsgl.swapInterval);
+ if (setting > 0)
+ {
+ [window->context.nsgl.swapIntervalCond lock];
+ window->context.nsgl.swapIntervalsPassed++;
+ [window->context.nsgl.swapIntervalCond signal];
+ [window->context.nsgl.swapIntervalCond unlock];
+ }
- return kCVReturnSuccess;
+ return kCVReturnSuccess;
}
static void makeContextCurrentNSGL(_GLFWwindow* window)