From a2fb7720ff32a7db062f5c99d419b741d2e4f61a Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Thu, 3 Apr 2008 11:30:31 +0200 Subject: [PATCH] Code formatting --- WindowManager.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/WindowManager.cpp b/WindowManager.cpp index 2f551a7..44a3150 100644 --- a/WindowManager.cpp +++ b/WindowManager.cpp @@ -120,7 +120,9 @@ void WindowManager::eventLoop() static double i = 0.0; while (SDL_WaitEvent(&event) ) { - if (event.type == SDL_USEREVENT && event.user.code == RenderEvent) { + if (event.type == SDL_USEREVENT && + event.user.code == RenderEvent) { + #ifdef DEBUG_VALGRIND if(i < 0.25) { #endif @@ -133,9 +135,10 @@ void WindowManager::eventLoop() } #endif } - else if (event.type == SDL_USEREVENT && event.user.code - == BOINCUpdateEvent) { - + else if (event.type == SDL_USEREVENT && + event.user.code == BOINCUpdateEvent) { + + } else if (event.motion.state & (SDL_BUTTON(1) | SDL_BUTTON(3)) && event.type == SDL_MOUSEMOTION) { -- GitLab