diff options
author | marynate <mary.w.nate@gmail.com> | 2014-03-27 20:09:18 +0800 |
---|---|---|
committer | marynate <mary.w.nate@gmail.com> | 2014-03-27 23:16:03 +0800 |
commit | f6e6093ab966cd84687e258c7a69dc382f04bc35 (patch) | |
tree | 38be212dd50e5ce8ce54797b1a595c72ccae12ba /main | |
parent | e20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff) |
Add display/resizable to project setting to prevent windwo from resizing
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 7d19c2ebcf..323250fe11 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -577,12 +577,15 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas video_mode.height=globals->get("display/height"); if (use_custom_res && globals->has("display/fullscreen")) video_mode.fullscreen=globals->get("display/fullscreen"); + if (use_custom_res && globals->has("display/resizable")) + video_mode.resizable=globals->get("display/resizable"); GLOBAL_DEF("display/width",video_mode.width); GLOBAL_DEF("display/height",video_mode.height); GLOBAL_DEF("display/fullscreen",video_mode.fullscreen); + GLOBAL_DEF("display/resizable",video_mode.resizable); if (rtm==-1) { rtm=GLOBAL_DEF("render/thread_model",OS::RENDER_THREAD_SAFE); } |