Accommodate for @mathewv's "smooth" implementation
This commit is contained in:
parent
582b750c2b
commit
f8c3862c2e
|
|
@ -198,7 +198,6 @@ RB_METHOD(graphicsPlayMovie)
|
||||||
DEF_GRA_PROP_I(FrameRate)
|
DEF_GRA_PROP_I(FrameRate)
|
||||||
DEF_GRA_PROP_I(FrameCount)
|
DEF_GRA_PROP_I(FrameCount)
|
||||||
DEF_GRA_PROP_I(Brightness)
|
DEF_GRA_PROP_I(Brightness)
|
||||||
DEF_GRA_PROP_B(Smooth)
|
|
||||||
|
|
||||||
DEF_GRA_PROP_B(Fullscreen)
|
DEF_GRA_PROP_B(Fullscreen)
|
||||||
DEF_GRA_PROP_B(ShowCursor)
|
DEF_GRA_PROP_B(ShowCursor)
|
||||||
|
|
@ -242,8 +241,6 @@ void graphicsBindingInit()
|
||||||
_rb_define_module_function(module, "play_movie", graphicsPlayMovie);
|
_rb_define_module_function(module, "play_movie", graphicsPlayMovie);
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_GRA_PROP_BIND( Smooth, "smooth" );
|
|
||||||
|
|
||||||
INIT_GRA_PROP_BIND( Fullscreen, "fullscreen" );
|
INIT_GRA_PROP_BIND( Fullscreen, "fullscreen" );
|
||||||
INIT_GRA_PROP_BIND( ShowCursor, "show_cursor" );
|
INIT_GRA_PROP_BIND( ShowCursor, "show_cursor" );
|
||||||
INIT_GRA_PROP_BIND( Smooth, "smooth" );
|
INIT_GRA_PROP_BIND( Smooth, "smooth" );
|
||||||
|
|
|
||||||
|
|
@ -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 *Graphics::snapToBitmap()
|
||||||
{
|
{
|
||||||
Bitmap *bitmap = new Bitmap(width(), height());
|
Bitmap *bitmap = new Bitmap(width(), height());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue