From 0360b454a432dc851cc1c5b0c365049ebafcec46 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 18 Apr 2014 11:43:54 -0300 Subject: -Fixed viewport stretch bugs -Fixed input in viewport stretch bugs -Fixed tilemap pixel overlap (really?) --- platform/windows/os_windows.cpp | 7 +++++++ platform/windows/os_windows.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'platform/windows') diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 9871ecba8b..64219d6c17 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1647,6 +1647,13 @@ void OS_Windows::move_window_to_foreground() { } +Error OS_Windows::shell_open(String p_uri) { + + ShellExecuteW(NULL, L"open", p_uri.c_str(), NULL, NULL, SW_SHOWNORMAL); + return OK; +} + + String OS_Windows::get_locale() const { const _WinLocale *wl = &_win_locales[0]; diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h index 6d75ca8d7b..365808d175 100644 --- a/platform/windows/os_windows.h +++ b/platform/windows/os_windows.h @@ -246,6 +246,8 @@ public: virtual void make_rendering_thread(); virtual void swap_buffers(); + virtual Error shell_open(String p_uri); + void run(); virtual bool get_swap_ok_cancel() { return true; } -- cgit v1.2.3