diff src/video/directfb/SDL_DirectFB_WM.c @ 4568:25b9cd8bdc30

Couriersud to Sam I have done some quick changes and at least the code compiles again. It also works with a number of the test executables with the DFB X11 backend. I hope to find time to get SDLMAME to work with latest SDL1.3 (i.e. rip out multi-keyboard, multi-mice & cursor support) next week to test it further. Regards, André
author Sam Lantinga <slouken@libsdl.org>
date Fri, 23 Jul 2010 21:33:00 -0700
parents f7b03b6838cb
children b196d2758026
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_WM.c	Thu Jul 22 22:09:04 2010 -0700
+++ b/src/video/directfb/SDL_DirectFB_WM.c	Fri Jul 23 21:33:00 2010 -0700
@@ -210,7 +210,7 @@
     windata->window->MoveTo(windata->window, 0, 0);
     windata->window->Resize(windata->window,
                             display->current_mode.w, display->current_mode.h);
-    SDL_SendWindowEvent(windata->sdl_id, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
+    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
 }
 
 void
@@ -226,7 +226,7 @@
                             windata->restore.y);
     windata->window->Resize(windata->window, windata->restore.w,
                             windata->restore.h);
-    SDL_SendWindowEvent(windata->sdl_id, SDL_WINDOWEVENT_RESTORED, 0, 0);
+    SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
 }
 
 enum
@@ -304,7 +304,7 @@
             case WM_POS_NONE:
                 return 0;
             case WM_POS_CLOSE:
-                SDL_SendWindowEvent(windata->sdl_id, SDL_WINDOWEVENT_CLOSE, 0,
+                SDL_SendWindowEvent(window, SDL_WINDOWEVENT_CLOSE, 0,
                                     0);
                 return 1;
             case WM_POS_MAX: