diff src/video/x11/SDL_x11window.c @ 4902:50d0bff24d81

Make the union nameless to reduce the complexity of the API. (Are there any compilers still in use that don't support this?)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 29 Sep 2010 21:13:52 -0700
parents 7b1d35d98294
children 24d44c7c4c63
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Mon Sep 27 01:30:42 2010 -0700
+++ b/src/video/x11/SDL_x11window.c	Wed Sep 29 21:13:52 2010 -0700
@@ -1125,8 +1125,8 @@
     if (info->version.major == SDL_MAJOR_VERSION &&
         info->version.minor == SDL_MINOR_VERSION) {
         info->subsystem = SDL_SYSWM_X11;
-        info->info.x11.display = display;
-        info->info.x11.window = data->xwindow;
+        info->x11.display = display;
+        info->x11.window = data->xwindow;
         return SDL_TRUE;
     } else {
         SDL_SetError("Application not compiled with SDL %d.%d\n",