src/video/windows/SDL_windowswindow.c
changeset 5980 612b41c44af1
parent 5581 f40f9d3ca2bc
child 6044 35448a5ea044
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Tue Oct 11 22:42:54 2011 -0400
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Wed Oct 12 20:01:09 2011 -0400
     1.3 @@ -88,6 +88,8 @@
     1.4      data->mouse_pressed = SDL_FALSE;
     1.5      data->videodata = videodata;
     1.6  
     1.7 +    window->driverdata = data;
     1.8 +
     1.9      /* Associate the data with the window */
    1.10      if (!SetProp(hwnd, TEXT("SDL_WindowData"), data)) {
    1.11          ReleaseDC(hwnd, data->hdc);
    1.12 @@ -183,7 +185,6 @@
    1.13      }
    1.14  
    1.15      /* All done! */
    1.16 -    window->driverdata = data;
    1.17      return 0;
    1.18  }
    1.19