diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-13 12:51:14 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-01-13 12:51:14 -0300 |
commit | e53c247cb16b25b828461f32533da64f4fab0e0b (patch) | |
tree | 985328cee0387b987889ecccb65293bf87883dec /scene/2d/animated_sprite.cpp | |
parent | 0ad9939603a3d659f3f9cfba095a2e0c082483e8 (diff) | |
download | redot-engine-e53c247cb16b25b828461f32533da64f4fab0e0b.tar.gz |
Created new Engine singleton, and moved engine related OS functions to it.
Diffstat (limited to 'scene/2d/animated_sprite.cpp')
-rw-r--r-- | scene/2d/animated_sprite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp index 4300c25e9f..ac24e4ee97 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -417,7 +417,7 @@ void AnimatedSprite::_notification(int p_what) { if (centered) ofs-=s/2; - if (OS::get_singleton()->get_use_pixel_snap()) { + if (Engine::get_singleton()->get_use_pixel_snap()) { ofs=ofs.floor(); } Rect2 dst_rect(ofs,s); |