This commit is contained in:
ZakatTeamI2P 2026-03-31 14:33:53 +04:00
parent d9347ca454
commit c237203e1a
3 changed files with 9 additions and 11 deletions

View file

@ -79,9 +79,7 @@ raiseRbExc(const Exception &exc);
#endif
#define DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, Name, Free) \
rb_data_type_t Klass##Type = { \
Name, { 0, Free, 0, { 0, 0 } }, 0, 0, DEF_TYPE_FLAGS \
}
rb_data_type_t Klass##Type = { Name, { 0, Free, 0, { 0, 0 } }, 0, 0, (void*)DEF_TYPE_FLAGS }
#define DEF_TYPE_CUSTOMFREE(Klass, Free) \
DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, #Klass, Free)

View file

@ -44,7 +44,7 @@ fileIntForPath(const char *path, bool rubyExc)
try
{
shState->fileSystem().openReadRaw(*ops, path);
shState->fileSystem().openReadRaw(ops*, path);
}
catch (const Exception &e)
{

View file

@ -99,9 +99,9 @@ RB_METHOD(nikoPrepare)
RB_UNUSED_PARAM;
// Prime native window info
syswm::SDL_SysWMinfo syswindow;
SDL_VERSION(&syswindow.version);
SDL_GetWindowWMInfo(shState->rtData().window, &syswindow);
//syswm::SDL_SysWMinfo syswindow;
//SDL_VERSION(&syswindow.version);
//SDL_GetWindowWMInfo(shState->rtData().window, &syswindow);
#ifdef LINUX
char path[PATH_MAX];
@ -133,9 +133,9 @@ RB_METHOD(nikoStart)
RB_UNUSED_PARAM;
// Prime native window info
syswm::SDL_SysWMinfo syswindow;
SDL_VERSION(&syswindow.version);
SDL_GetWindowWMInfo(shState->rtData().window, &syswindow);
//syswm::SDL_SysWMinfo syswindow;
//SDL_VERSION(&syswindow.version);
//SDL_GetWindowWMInfo(shState->rtData().window, &syswindow);
#ifdef _WIN32
// Calculate where to stick the window