mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-01 22:25:17 +02:00
Give Graphics.screenshot the correct pointer (fixes #51)
This commit is contained in:
parent
725d593db3
commit
3124395cf8
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ RB_METHOD(graphicsScreenshot)
|
||||||
rb_thread_call_without_gvl([](void* fn) -> void* {
|
rb_thread_call_without_gvl([](void* fn) -> void* {
|
||||||
graphicsScreenshotInternal((const char*)fn);
|
graphicsScreenshotInternal((const char*)fn);
|
||||||
return 0;
|
return 0;
|
||||||
}, (void*)filename, 0, 0);
|
}, (void*)RSTRING_PTR(filename), 0, 0);
|
||||||
#else
|
#else
|
||||||
graphicsScreenshotInternal(RSTRING_PTR(filename));
|
graphicsScreenshotInternal(RSTRING_PTR(filename));
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue