diff --git a/OneShot.app/Contents/Resources/oneshot b/OneShot.app/Contents/Resources/oneshot index db9ae44..8f5d28a 100755 Binary files a/OneShot.app/Contents/Resources/oneshot and b/OneShot.app/Contents/Resources/oneshot differ diff --git a/binding-mri/graphics-binding.cpp b/binding-mri/graphics-binding.cpp index 6b39697..cebba6e 100644 --- a/binding-mri/graphics-binding.cpp +++ b/binding-mri/graphics-binding.cpp @@ -198,6 +198,7 @@ RB_METHOD(graphicsPlayMovie) DEF_GRA_PROP_I(FrameRate) DEF_GRA_PROP_I(FrameCount) DEF_GRA_PROP_I(Brightness) +DEF_GRA_PROP_B(Smooth) DEF_GRA_PROP_B(Fullscreen) DEF_GRA_PROP_B(ShowCursor) @@ -240,6 +241,8 @@ void graphicsBindingInit() _rb_define_module_function(module, "play_movie", graphicsPlayMovie); } + INIT_GRA_PROP_BIND( Smooth, "smooth" ); + INIT_GRA_PROP_BIND( Fullscreen, "fullscreen" ); INIT_GRA_PROP_BIND( ShowCursor, "show_cursor" ); } diff --git a/src/graphics.cpp b/src/graphics.cpp index ef70267..9eb99df 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -472,6 +472,7 @@ struct GraphicsPrivate int frameRate; int frameCount; int brightness; + bool smooth; FPSLimiter fpsLimiter; @@ -935,6 +936,13 @@ void Graphics::fadein(int duration) } } +DEF_ATTR_RD_SIMPLE(Graphics, Smooth, bool, p->smooth) + +void Graphics::setSmooth(bool value) +{ + p->smooth = value; +} + Bitmap *Graphics::snapToBitmap() { Bitmap *bitmap = new Bitmap(width(), height()); diff --git a/src/graphics.h b/src/graphics.h index 46f8204..c6c2c6d 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -45,6 +45,7 @@ public: DECL_ATTR( FrameRate, int ) DECL_ATTR( FrameCount, int ) DECL_ATTR( Brightness, int ) + DECL_ATTR( Smooth, bool ) void wait(int duration); void fadeout(int duration);