diff src/video/win32/SDL_win32window.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 69d9db65f248
children 716b2cbf4c9e
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Mon Sep 27 01:30:42 2010 -0700
+++ b/src/video/win32/SDL_win32window.c	Wed Sep 29 21:13:52 2010 -0700
@@ -552,7 +552,7 @@
     HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
     if (info->version.major <= SDL_MAJOR_VERSION) {
         info->subsystem = SDL_SYSWM_WINDOWS;
-        info->info.win.window = hwnd;
+        info->win.window = hwnd;
         return SDL_TRUE;
     } else {
         SDL_SetError("Application not compiled with SDL %d.%d\n",