Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_events.c @ 2259:1e690901ecd7
Date: Fri, 17 Aug 2007 01:12:31 +0200
From: Couriersud
Subject: fix for audio dsp exit crash / various dfb issues
improved cursor handling
fixes some mouse and event related bugs
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 17 Aug 2007 02:54:50 +0000 |
parents | 0e70b4b8cf84 |
children | e1da92da346c e82a0e3e9b0e |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_events.c Fri Aug 17 02:54:12 2007 +0000 +++ b/src/video/directfb/SDL_DirectFB_events.c Fri Aug 17 02:54:50 2007 +0000 @@ -64,7 +64,7 @@ DirectFB_TranslateButton(evt.button)); break; case DWET_MOTION: - SDL_SendMouseMotion(devdata->mouse, 0, evt.x, evt.y); + SDL_SendMouseMotion(devdata->mouse, 0, evt.cx, evt.cy); break; case DWET_KEYDOWN: DirectFB_TranslateKey(evt.key_id, evt.key_symbol, @@ -79,14 +79,14 @@ keysym.scancode, keysym.sym); break; case DWET_POSITION_SIZE: - SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.cx, - evt.cy); + SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.x, + evt.y); SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w, evt.h); break; case DWET_POSITION: - SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.cx, - evt.cy); + SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.x, + evt.y); break; case DWET_SIZE: SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w,