mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge branch 'master' of https://github.com/okamstudio/godot
This commit is contained in:
@@ -378,8 +378,8 @@ static int button_mask=0;
|
||||
prev_mouse_y=mouse_y;
|
||||
const NSRect contentRect = [OS_OSX::singleton->window_view frame];
|
||||
const NSPoint p = [event locationInWindow];
|
||||
mouse_x = p.x;
|
||||
mouse_y = contentRect.size.height - p.y;
|
||||
mouse_x = p.x * [[event window] backingScaleFactor];
|
||||
mouse_y = (contentRect.size.height - p.y) * [[event window] backingScaleFactor];
|
||||
ev.mouse_motion.x=mouse_x;
|
||||
ev.mouse_motion.y=mouse_y;
|
||||
ev.mouse_motion.global_x=mouse_x;
|
||||
|
||||
@@ -84,6 +84,7 @@ def configure(env):
|
||||
|
||||
env.Append(CCFLAGS=['/O2'])
|
||||
env.Append(LINKFLAGS=['/SUBSYSTEM:WINDOWS'])
|
||||
env.Append(LINKFLAGS=['/ENTRY:mainCRTStartup'])
|
||||
|
||||
elif (env["target"]=="test"):
|
||||
|
||||
@@ -92,8 +93,9 @@ def configure(env):
|
||||
|
||||
elif (env["target"]=="debug"):
|
||||
|
||||
env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
|
||||
env.Append(CCFLAGS=['/Zi','/DDEBUG_ENABLED','/DD3D_DEBUG_INFO','/O1'])
|
||||
env.Append(LINKFLAGS=['/SUBSYSTEM:CONSOLE'])
|
||||
env.Append(LINKFLAGS=['/DEBUG'])
|
||||
|
||||
elif (env["target"]=="profile"):
|
||||
|
||||
@@ -113,8 +115,7 @@ def configure(env):
|
||||
env.Append(CCFLAGS=['/DGLES1_ENABLED'])
|
||||
env.Append(CCFLAGS=['/DGLEW_ENABLED'])
|
||||
env.Append(LIBS=['winmm','opengl32','dsound','kernel32','ole32','user32','gdi32','wsock32'])
|
||||
env.Append(LINKFLAGS=['/DEBUG'])
|
||||
|
||||
|
||||
env.Append(LIBPATH=[os.getenv("WindowsSdkDir")+"/Lib"])
|
||||
if (os.getenv("DXSDK_DIR")):
|
||||
DIRECTX_PATH=os.getenv("DXSDK_DIR")
|
||||
|
||||
Reference in New Issue
Block a user