diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index 4bc5e03..7076326 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -223,7 +223,7 @@ fileIntBindingInit() /* We overload the built-in 'Marshal::load()' function to silently * insert our utf8proc that ensures all read strings will be * UTF-8 encoded */ - VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); - rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); - _rb_define_module_function(marsh, "load", _marshalLoad); + // VALUE marsh = rb_const_get(rb_cObject, rb_intern("Marshal")); + // rb_define_alias(rb_singleton_class(marsh), "_mkxp_load_alias", "load"); + // _rb_define_module_function(marsh, "load", _marshalLoad); } diff --git a/binding-mri/graphics-binding.cpp b/binding-mri/graphics-binding.cpp index cebba6e..dd4519a 100644 --- a/binding-mri/graphics-binding.cpp +++ b/binding-mri/graphics-binding.cpp @@ -202,6 +202,7 @@ DEF_GRA_PROP_B(Smooth) DEF_GRA_PROP_B(Fullscreen) DEF_GRA_PROP_B(ShowCursor) +DEF_GRA_PROP_B(Smooth) #define INIT_GRA_PROP_BIND(PropName, prop_name_s) \ { \ @@ -245,4 +246,5 @@ void graphicsBindingInit() INIT_GRA_PROP_BIND( Fullscreen, "fullscreen" ); INIT_GRA_PROP_BIND( ShowCursor, "show_cursor" ); + INIT_GRA_PROP_BIND( Smooth, "smooth" ); } diff --git a/src/graphics.cpp b/src/graphics.cpp index 9eb99df..b92a7e2 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -1044,6 +1044,16 @@ void Graphics::setFullscreen(bool value) p->threadData->ethread->requestFullscreenMode(value); } +bool Graphics::getSmooth() const +{ + return p->threadData->config.smoothScaling; +} + +void Graphics::setSmooth(bool value) +{ + p->threadData->config.smoothScaling = value; +} + bool Graphics::getShowCursor() const { return p->threadData->ethread->getShowCursor(); diff --git a/src/graphics.h b/src/graphics.h index c6c2c6d..da7cdc1 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -63,6 +63,7 @@ public: /* Non-standard extension */ DECL_ATTR( Fullscreen, bool ) DECL_ATTR( ShowCursor, bool ) + DECL_ATTR( Smooth, bool ) /* */ Scene *getScreen() const;