# HG changeset patch # User Sam Lantinga # Date 1159112197 0 # Node ID c82c1870c77a8518fa32e55dd0392aaff3b784ee # Parent 678576473849423228202ae19a9f9ecb62bda286 Fixed formatting diff -r 678576473849 -r c82c1870c77a src/video/bwindow/SDL_sysmouse.cc --- a/src/video/bwindow/SDL_sysmouse.cc Sun Sep 24 15:31:42 2006 +0000 +++ b/src/video/bwindow/SDL_sysmouse.cc Sun Sep 24 15:36:37 2006 +0000 @@ -27,7 +27,7 @@ #include "SDL_BWin.h" extern "C" { -#include "SDL_cursor_c.h" +#include "../SDL_cursor_c.h" #include "SDL_sysmouse_c.h" /* Convert bits to padded bytes */ @@ -128,16 +128,17 @@ /* Implementation by Christian Bauer */ void BE_WarpWMCursor(_THIS, Uint16 x, Uint16 y) { - if (_this->screen && (_this->screen->flags & SDL_FULLSCREEN) ) { + if (_this->screen && (_this->screen->flags & SDL_FULLSCREEN)) { SDL_PrivateMouseMotion(0, 0, x, y); } else { - BPoint pt(x, y); - SDL_Win->Lock(); - SDL_Win->ConvertToScreen(&pt); - SDL_Win->Unlock(); - set_mouse_position((int32)pt.x, (int32)pt.y); + BPoint pt(x, y); + SDL_Win->Lock(); + SDL_Win->ConvertToScreen(&pt); + SDL_Win->Unlock(); + set_mouse_position((int32)pt.x, (int32)pt.y); } } + /* Check to see if we need to enter or leave mouse relative mode */ void BE_CheckMouseMode(_THIS) {