From 443f9bdfd5c94b36186fde2aa07d4a4f71e85aab Mon Sep 17 00:00:00 2001 From: Kingcom Date: Tue, 24 Sep 2013 20:11:42 +0200 Subject: [PATCH] Fix spaces --- Windows/GEDebugger/GEDebugger.cpp | 3 +- Windows/GEDebugger/SimpleGLWindow.cpp | 51 +++++++++++++-------------- 2 files changed, 25 insertions(+), 29 deletions(-) diff --git a/Windows/GEDebugger/GEDebugger.cpp b/Windows/GEDebugger/GEDebugger.cpp index 55cab05186..37f898f49b 100644 --- a/Windows/GEDebugger/GEDebugger.cpp +++ b/Windows/GEDebugger/GEDebugger.cpp @@ -56,8 +56,7 @@ static GPUDebugBuffer buffer; // TODO: Simplify and move out of windows stuff, just block in a common way for everyone. -void CGEDebugger::init() -{ +void CGEDebugger::init() { SimpleGLWindow::registerClass(); } diff --git a/Windows/GEDebugger/SimpleGLWindow.cpp b/Windows/GEDebugger/SimpleGLWindow.cpp index 358d8419ff..7ed53b1f6d 100644 --- a/Windows/GEDebugger/SimpleGLWindow.cpp +++ b/Windows/GEDebugger/SimpleGLWindow.cpp @@ -24,18 +24,18 @@ const PTCHAR SimpleGLWindow::windowClass = _T("SimpleGLWindow"); void SimpleGLWindow::registerClass() { WNDCLASSEX wndClass; - wndClass.cbSize = sizeof(wndClass); - wndClass.lpszClassName = windowClass; - wndClass.hInstance = GetModuleHandle(0); - wndClass.lpfnWndProc = wndProc; - wndClass.hCursor = LoadCursor (NULL, IDC_ARROW); - wndClass.hIcon = 0; - wndClass.lpszMenuName = 0; - wndClass.hbrBackground = (HBRUSH)GetSysColorBrush(COLOR_WINDOW); - wndClass.style = 0; - wndClass.cbClsExtra = 0; - wndClass.cbWndExtra = sizeof(SimpleGLWindow*); - wndClass.hIconSm = 0; + wndClass.cbSize = sizeof(wndClass); + wndClass.lpszClassName = windowClass; + wndClass.hInstance = GetModuleHandle(0); + wndClass.lpfnWndProc = wndProc; + wndClass.hCursor = LoadCursor (NULL, IDC_ARROW); + wndClass.hIcon = 0; + wndClass.lpszMenuName = 0; + wndClass.hbrBackground = (HBRUSH)GetSysColorBrush(COLOR_WINDOW); + wndClass.style = 0; + wndClass.cbClsExtra = 0; + wndClass.cbWndExtra = sizeof(SimpleGLWindow*); + wndClass.hIconSm = 0; RegisterClassEx(&wndClass); } @@ -79,8 +79,7 @@ SimpleGLWindow::~SimpleGLWindow() { } }; -void SimpleGLWindow::Initialize() -{ +void SimpleGLWindow::Initialize() { RECT rect; GetWindowRect(hWnd_, &rect); @@ -274,24 +273,22 @@ void SimpleGLWindow::Clear() { Swap(); } -SimpleGLWindow *SimpleGLWindow::getFrom(HWND hwnd) -{ - return (SimpleGLWindow*) GetWindowLongPtr(hwnd, GWLP_USERDATA); +SimpleGLWindow *SimpleGLWindow::getFrom(HWND hwnd) { + return (SimpleGLWindow*) GetWindowLongPtr(hwnd, GWLP_USERDATA); } -LRESULT CALLBACK SimpleGLWindow::wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) -{ +LRESULT CALLBACK SimpleGLWindow::wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { SimpleGLWindow *win = SimpleGLWindow::getFrom(hwnd); - switch(msg) - { - case WM_NCCREATE: - // Allocate a new CustCtrl structure for this window. - win = new SimpleGLWindow(hwnd); + switch(msg) + { + case WM_NCCREATE: + // Allocate a new CustCtrl structure for this window. + win = new SimpleGLWindow(hwnd); - // Continue with window creation. - return win != NULL; + // Continue with window creation. + return win != NULL; } - return DefWindowProc(hwnd, msg, wParam, lParam); + return DefWindowProc(hwnd, msg, wParam, lParam); } \ No newline at end of file