summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-13 15:53:34 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-13 15:53:34 -0300
commit79e5ced7e668fa53567ac6aaf5a26393cea6c9a2 (patch)
treef2c575f1957ab443eef49598f6f46c4285b4450c /main
parentb3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (diff)
-A little More control about pixel snapping in 2D
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 84f7c3a88e..e1bc3b9fd9 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -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