summaryrefslogtreecommitdiffhomepage
path: root/variant/trackmouse/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-13 09:23:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-13 09:23:43 +0100
commit1d62458961d32524a686b3c88f599559d722b1cb (patch)
tree9cea8008351413cf594899ae4853c8ef36070df1 /variant/trackmouse/main.cpp
parent15375537ebafd5b4ff2a1dad6d496ae5f1e1fd5b (diff)
variant/trackmouse: random flush
Diffstat (limited to 'variant/trackmouse/main.cpp')
-rw-r--r--variant/trackmouse/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/variant/trackmouse/main.cpp b/variant/trackmouse/main.cpp
new file mode 100644
index 00000000..0128683e
--- /dev/null
+++ b/variant/trackmouse/main.cpp
@@ -0,0 +1,18 @@
+#include "gui/init.hpp"
+#include "window.hpp"
+
+#if defined _WIN32
+# include <windows.h>
+#endif
+
+int main(int argc, char** argv)
+{
+ return run_application(argc, argv, []() { return new window; });
+}
+
+#if defined _MSC_VER
+int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */)
+{
+ return main(__argc, __argv);
+}
+#endif