Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 24, 2006
1 parent f6c7ac3 commit 003a368
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/video/bwindow/SDL_sysmouse.cc
Expand Up @@ -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 */
Expand Down Expand Up @@ -128,16 +128,17 @@ void BE_FreeWMCursor(_THIS, WMcursor *cursor)
/* Implementation by Christian Bauer <cbauer@student.physik.uni-mainz.de> */
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)
{
Expand Down

0 comments on commit 003a368

Please sign in to comment.