diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2009-12-02 03:57:12 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2009-12-02 03:57:12 +0300 |
commit | 5a3791ab5b2274fffde961bd01c75bacee74f634 (patch) | |
tree | 791cc3cf69436b91d82efbd292a4f3375e617bff /intern/ghost/SConscript | |
parent | d86a27f7b6d7b226d7369f17df6bcc3f24325e73 (diff) |
Apply patch [#20145] Ghost Win32 roundup patch: Minimum Window Size, Continuous Grab and Drag And Drop
This nice patch by Matt D. (matd in #blendercoders) adds three nice features that can be seen already in the other supported OSes:
* minimum window size: to prevent some bugs with the window manager of Blender, system windows cannot be resized smaller than the minimum size.
* Continuous Grab is finally in Windows! Default settings since alpha 0 already have the feature enabled by default, so grab a new build and enjoy :)
* GHOST support for drag and drop added. This prepares Blender for drag and drop from OS -> Blender. Currently not very useful, since wm needs to be readied for that. But it does work (do BF_GHOST_DEBUG=1 build and drag a file onto a Blender window).
Thanks Matt D.!
Diffstat (limited to 'intern/ghost/SConscript')
-rw-r--r-- | intern/ghost/SConscript | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/ghost/SConscript b/intern/ghost/SConscript index 09da6f94ddc..84ca97fdb93 100644 --- a/intern/ghost/SConscript +++ b/intern/ghost/SConscript @@ -37,8 +37,12 @@ else: print "Unknown window system specified." Exit() +defs=['_USE_MATH_DEFINES'] +if env['BF_GHOST_DEBUG']: + defs.append('BF_GHOST_DEBUG') + incs = '. ../string ' + env['BF_OPENGL_INC'] if window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'): incs = env['BF_WINTAB_INC'] + ' ' + incs -env.BlenderLib ('bf_ghost', sources, Split(incs), defines=['_USE_MATH_DEFINES'], libtype=['intern','player'], priority = [40,15] ) +env.BlenderLib ('bf_ghost', sources, Split(incs), defines=defs, libtype=['intern','player'], priority = [40,15] ) |