Skip to content

Commit bdbd2e8

Browse files
committed
stuff
1 parent 251896b commit bdbd2e8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/ruisapp/glue/macos/glue.mm‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ int main(int argc, const char** argv){
6060
ProcessSerialNumber psn = {0, kCurrentProcess};
6161
OSStatus status = TransformProcessType(&psn, kProcessTransformToForegroundApplication);
6262
if(status != errSecSuccess){
63-
utki::assert(false, SL);
63+
utki::assert(false, [&](auto& o) {o << "status = " << unsigned(status);});
6464
}
6565
}
6666

‎src/ruisapp/glue/macos/window.hxx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ public:
239239
GLint sync = enabled ? 1 : 0;
240240
[this->opengl_context.context setValues:&sync forParameter:NSOpenGLCPSwapInterval];
241241

242-
// TODO: is this the right way to do it?
243-
// GLint swapInt = 1;
244-
// [[self openGLContext] setValues:&swapInt forParameter:NSOpenGLContextParameterSwapInterval];
242+
// TODO: is this another way to do it?
243+
// GLint swapInt = enabled ? 1 : 0;
244+
// [this->opengl_context.context setValues:&swapInt forParameter:NSOpenGLContextParameterSwapInterval];
245245
}
246246

247247
void set_mouse_cursor_visible(bool visible) override;

0 commit comments

Comments
 (0)