Give Graphics.screenshot the correct pointer (fixes #51)

This commit is contained in:
Struma 2021-12-20 17:38:17 -05:00
parent 725d593db3
commit 3124395cf8

View file

@ -289,7 +289,7 @@ RB_METHOD(graphicsScreenshot)
rb_thread_call_without_gvl([](void* fn) -> void* {
graphicsScreenshotInternal((const char*)fn);
return 0;
}, (void*)filename, 0, 0);
}, (void*)RSTRING_PTR(filename), 0, 0);
#else
graphicsScreenshotInternal(RSTRING_PTR(filename));
#endif