changeset 4631:0a3bfd46c4db

Merge.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Tue, 03 Aug 2010 08:05:53 +0530
parents 02895e9c796b (current diff) fad859023468 (diff)
children 066ce836b80e
files
diffstat 5 files changed, 23 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Aug 02 17:14:09 2010 +0530
+++ b/configure.in	Tue Aug 03 08:05:53 2010 +0530
@@ -1039,6 +1039,8 @@
                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
                     xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
                     xss_lib='/usr/X11R6/lib/libXss.6.dylib'
+                    xdamage_lib='/usr/X11R6/lib/libXdamage.1.dylib'
+                    xfixes_lib='/usr/X11R6/lib/libXfixes.3.dylib'
                     ;;
                 *-*-osf*)
                     x11_lib='libX11.so'
--- a/include/SDL.h	Mon Aug 02 17:14:09 2010 +0530
+++ b/include/SDL.h	Tue Aug 03 08:05:53 2010 +0530
@@ -139,16 +139,16 @@
 extern DECLSPEC void SDLCALL SDL_QuitSubSystem(Uint32 flags);
 
 /**
- *  This function returns mask of the specified subsystems which have
- *  been initialized.
+ *  This function returns a mask of the specified subsystems which have
+ *  previously been initialized.
  *  
  *  If \c flags is 0, it returns a mask of all initialized subsystems.
  */
 extern DECLSPEC Uint32 SDLCALL SDL_WasInit(Uint32 flags);
 
 /**
- *  This function cleans up all initialized subsystems and unloads the
- *  dynamically linked library.  You should call it upon all exit conditions.
+ *  This function cleans up all initialized subsystems. You should
+ *  call it upon all exit conditions.
  */
 extern DECLSPEC void SDLCALL SDL_Quit(void);
 
--- a/include/SDL_version.h	Mon Aug 02 17:14:09 2010 +0530
+++ b/include/SDL_version.h	Tue Aug 03 08:05:53 2010 +0530
@@ -112,12 +112,11 @@
 
 /**
  *  \brief Get the version of SDL that is linked against your program.
- *  
- *  If you are using a shared library (DLL) version of SDL, then it is
- *  possible that it will be different than the version you compiled against.
  *
- *  This is a real function; the macro SDL_VERSION() tells you what version
- *  of SDL you compiled against:
+ *  If you are linking to SDL dynamically, then it is possible that the
+ *  current version will be different than the version you compiled against.
+ *  This function returns the current version, while SDL_VERSION() is a
+ *  macro that tells you what version you compiled with.
  *  
  *  \code
  *  SDL_version compiled;
@@ -140,8 +139,9 @@
 /**
  *  \brief Get the code revision of SDL that is linked against your program.
  *
- *  This is an arbitrary string (a hash value, actually), and is only useful
- *  in comparing against other revisions. It is NOT an incrementing number.
+ *  Returns an arbitrary string (a hash value) uniquely identifying the
+ *  exact revision of the SDL library in use, and is only useful in comparing
+ *  against other revisions. It is NOT an incrementing number.
  */
 extern DECLSPEC const char *SDLCALL SDL_GetRevision(void);
 
--- a/src/SDL_error.c	Mon Aug 02 17:14:09 2010 +0530
+++ b/src/SDL_error.c	Tue Aug 03 08:05:53 2010 +0530
@@ -30,8 +30,7 @@
 
 /* Routine to get the thread-specific error variable */
 #if SDL_THREADS_DISABLED
-/* !!! FIXME: what does this comment mean? Victim of Search and Replace? */
-/* The  SDL_arraysize(The ),default (non-thread-safe) global error variable */
+/* The default (non-thread-safe) global error variable */
 static SDL_error SDL_global_error;
 #define SDL_GetErrBuf()	(&SDL_global_error)
 #else
--- a/src/video/x11/SDL_x11window.c	Mon Aug 02 17:14:09 2010 +0530
+++ b/src/video/x11/SDL_x11window.c	Tue Aug 03 08:05:53 2010 +0530
@@ -94,9 +94,15 @@
         (SDL_DisplayData *) window->display->driverdata;
     XWindowAttributes attr;
 
-    XGetWindowAttributes(data->display, RootWindow(data->display,
-                                                   displaydata->screen),
-                         &attr);
+    XGetWindowAttributes(data->display, RootWindow(data->display, displaydata->screen), &attr);
+    if (window->flags & SDL_WINDOW_FULLSCREEN) {
+        /* The bounds when this window is visible is the fullscreen mode */
+        SDL_DisplayMode fullscreen_mode;
+        if (SDL_GetWindowDisplayMode(window, &fullscreen_mode) == 0) {
+            attr.width = fullscreen_mode.w;
+            attr.height = fullscreen_mode.h;
+        }
+    }
     if (w) {
         *w = attr.width;
     }