From 693f045ff86038d36f25141fd24ffcfec93a04f6 Mon Sep 17 00:00:00 2001 From: Mathew Velasquez Date: Fri, 4 Nov 2016 00:05:49 -0400 Subject: [PATCH] More line ending fixes, ___ --- binding-mri/niko-binding.cpp | 104 +++++++++++++++++------------------ 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/binding-mri/niko-binding.cpp b/binding-mri/niko-binding.cpp index 4e315c5..368fccc 100644 --- a/binding-mri/niko-binding.cpp +++ b/binding-mri/niko-binding.cpp @@ -1,52 +1,52 @@ -#include "binding-util.h" -#include "binding-types.h" -#include "sharedstate.h" -#include "eventthread.h" -#include "debugwriter.h" - -#ifdef _WIN32 -#include -#endif - -#include -#include - -RB_METHOD(nikoStart) -{ - RB_UNUSED_PARAM; - // Calculate where to stick the window - POINT pos; - pos.x = (9 * 16 - 4) * 2; - pos.y = (13 * 16) * 2; - SDL_SysWMinfo syswindow; - SDL_VERSION(&syswindow.version); - SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); - ClientToScreen(syswindow.info.win.window, &pos); - // Start process -#ifdef _WIN32 - WCHAR path[MAX_PATH]; - WCHAR args[MAX_PATH]; - GetModuleFileNameW(NULL, path, MAX_PATH); - PathRemoveFileSpecW(path); - wcscat(path, L"\\journal.exe"); - wsprintfW(args, L"journal.exe %d %d", pos.x, pos.y); - STARTUPINFOW si; - memset(&si, 0, sizeof(si)); - si.cb = sizeof(si); - PROCESS_INFORMATION pi; - CreateProcessW(path, args, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); -#else -#ifdef linux -#else -#endif -#endif - return Qnil; -} - -void nikoBindingInit() -{ - VALUE module = rb_define_module("Niko"); - - //Functions - _rb_define_module_function(module, "do_your_thing", nikoStart); -} +#include "binding-util.h" +#include "binding-types.h" +#include "sharedstate.h" +#include "eventthread.h" +#include "debugwriter.h" + +#ifdef _WIN32 +#include +#endif + +#include +#include + +RB_METHOD(nikoStart) +{ + RB_UNUSED_PARAM; + // Calculate where to stick the window + POINT pos; + pos.x = (9 * 16 - 4) * 2; + pos.y = (13 * 16) * 2; + SDL_SysWMinfo syswindow; + SDL_VERSION(&syswindow.version); + SDL_GetWindowWMInfo(shState->rtData().window, &syswindow); + ClientToScreen(syswindow.info.win.window, &pos); + // Start process +#ifdef _WIN32 + WCHAR path[MAX_PATH]; + WCHAR args[MAX_PATH]; + GetModuleFileNameW(NULL, path, MAX_PATH); + PathRemoveFileSpecW(path); + wcscat(path, L"\\___.exe"); + wsprintfW(args, L"___.exe %d %d", pos.x, pos.y); + STARTUPINFOW si; + memset(&si, 0, sizeof(si)); + si.cb = sizeof(si); + PROCESS_INFORMATION pi; + CreateProcessW(path, args, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); +#else +#ifdef linux +#else +#endif +#endif + return Qnil; +} + +void nikoBindingInit() +{ + VALUE module = rb_define_module("Niko"); + + //Functions + _rb_define_module_function(module, "do_your_thing", nikoStart); +}