Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_mouse.c @ 2721:e82a0e3e9b0e
Date: Sun, 20 Jul 2008 22:34:37 +0200
From: Couriersud
Subject: Updated DirectFB driver for SDL1.3
please find attached a patch for an updated directfb driver for SDL1.3.
It does now
- properly supported the new input api.
- send unicode text events
- support directfb windows
- support multiple screens
- support hardware YUV scaling for the first YUV texture created.
- support hardware scaling for textures.
- properly interpret streaming access
- support software opengl if one manages to install the mesa directfb
driver (broken/not broken in mesa svn)
Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there
is another patch which fixes a crash due to GL context creation.
Kind regards,
couriersud
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 26 Aug 2008 02:32:45 +0000 |
parents | 1e690901ecd7 |
children | 204be4fc2726 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_mouse.c Tue Aug 26 02:26:18 2008 +0000 +++ b/src/video/directfb/SDL_DirectFB_mouse.c Tue Aug 26 02:32:45 2008 +0000 @@ -80,7 +80,7 @@ dsc.flags = DSDESC_WIDTH | DSDESC_HEIGHT | DSDESC_PIXELFORMAT | DSDESC_CAPS; - dsc.caps = DSCAPS_NONE; //DSCAPS_SYSTEMONLY; + dsc.caps = DSCAPS_VIDEOONLY; dsc.width = surface->w; dsc.height = surface->h; dsc.pixelformat = DSPF_ARGB; @@ -101,7 +101,6 @@ dest[i] = 0x00000000; else dest[i] = p[i]; - //memcpy(dest, surface->pixels, surface->w * surface->h * 4); curdata->surf->Unlock(curdata->surf); return cursor; error: @@ -112,7 +111,6 @@ static int DirectFB_ShowCursor(SDL_Cursor * cursor) { - //FIXME check for null cursor here SDL_DFB_CURSORDATA(cursor); SDL_VideoDevice *dev = SDL_GetVideoDevice(); SDL_DFB_DEVICEDATA(dev); @@ -136,7 +134,6 @@ SDL_DFB_CHECKERR(windata->window-> SetCursorShape(windata->window, curdata->surf, curdata->hotx, curdata->hoty)); - //FIXME: This is somehow a directfb issue //TODO: Check administrative SDL_DFB_CHECKERR(dispdata->layer-> SetCooperativeLevel(dispdata->layer, @@ -176,7 +173,6 @@ static void DirectFB_WarpMouse(SDL_Mouse * mouse, SDL_WindowID windowID, int x, int y) { -// SDL_DFB_CURSORDATA(cursor); SDL_Window *window = SDL_GetWindowFromID(windowID); SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); DFB_DisplayData *dispdata = (DFB_DisplayData *) display->driverdata;