-A little More control about pixel snapping in 2D

This commit is contained in:
Juan Linietsky
2015-10-13 15:53:34 -03:00
parent b3cda43a0f
commit 79e5ced7e6
6 changed files with 18 additions and 3 deletions

View File

@ -701,6 +701,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
GLOBAL_DEF("display/resizable",video_mode.resizable);
GLOBAL_DEF("display/test_width",0);
GLOBAL_DEF("display/test_height",0);
OS::get_singleton()->_pixel_snap=GLOBAL_DEF("display/use_2d_pixel_snap",false);
if (rtm==-1) {
rtm=GLOBAL_DEF("render/thread_model",OS::RENDER_THREAD_SAFE);
if (rtm>=1) //hack for now