From f8c3862c2ecc81ceced4fc6c6f1b75a92a28c3a7 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Wed, 14 Dec 2016 21:14:42 -0800 Subject: [PATCH] Accommodate for @mathewv's "smooth" implementation --- binding-mri/graphics-binding.cpp | 3 --- src/graphics.cpp | 7 ------- 2 files changed, 10 deletions(-) diff --git a/binding-mri/graphics-binding.cpp b/binding-mri/graphics-binding.cpp index dd4519a..d8a874e 100644 --- a/binding-mri/graphics-binding.cpp +++ b/binding-mri/graphics-binding.cpp @@ -198,7 +198,6 @@ 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) @@ -242,8 +241,6 @@ 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" ); INIT_GRA_PROP_BIND( Smooth, "smooth" ); diff --git a/src/graphics.cpp b/src/graphics.cpp index b92a7e2..03c9f19 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -936,13 +936,6 @@ 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());