Commit Graph

11015 Commits

Author SHA1 Message Date
Sam Lantinga
d7d1f5cd9a Fixed bug #196
Use the title and icon stored in the SDL video info, when creating X11 windows.
2006-05-05 05:09:10 +00:00
Sam Lantinga
294e7aee96 2006-05-04 16:52:53 +00:00
Sam Lantinga
21b6c23de9 Fixed bug #45
Improved Xinerama support.
Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment variable, currently supported on X11 Xinerama configurations.
Only use the VidMode extension on the primary head.
2006-05-04 16:51:07 +00:00
Sam Lantinga
d8f4f148cd The install target depends on the libraries being built 2006-05-04 13:47:19 +00:00
Sam Lantinga
6c8d058220 Updated to include new languages and platform support 2006-05-04 12:08:05 +00:00
Sam Lantinga
5d1ffbee80 Date: Thu, 4 May 2006 08:44:10 +0200 (CEST)
From: Doodle
Subject: Re: SDL OS/2 build updated?

It seems that I made a mistake in the previous Watcom makefile, leaving
out some .c files from linking, this is now fixed, and everything builds
well now.

Doodle
2006-05-04 11:59:55 +00:00
Sam Lantinga
6fcf0ad85a Fixed execv warning when libtool creates wrapper executables 2006-05-03 16:35:29 +00:00
Sam Lantinga
064511501d Patch from Dmitry Yakimov to fix building on WinCE 2006-05-03 04:11:38 +00:00
Sam Lantinga
a86ca3b055 Added instructions for copying SDL_config.h 2006-05-02 15:18:07 +00:00
Sam Lantinga
2a5b83ceeb Updated OS/2 project files 2006-05-02 03:06:33 +00:00
Sam Lantinga
b75afc4eed Yeah, that's what I meant. :) 2006-05-01 23:13:16 +00:00
Sam Lantinga
db58f6d9de Using the SDL C runtime functions 2006-05-01 11:07:04 +00:00
Sam Lantinga
d8a526a463 Don't add NONE/bin to the path - inexplicably fixes building on mingw+msys, apparently 2006-05-01 07:23:46 +00:00
Sam Lantinga
5629ce5fe7 Date: Sun, 30 Apr 2006 14:20:05 +1000
From: Rob
Subject: [SDL] SDL pre-release

OpenGL fails on the zipped pre-release source accessible from
http://www.libsdl.org/svn.php.

Appears to be following lines in sdl_wing.c (lines 341-345):

wglext = (const char *)this->glGetString(GL_EXTENSIONS);
    if ( !SDL_strstr(wglext, "WGL_EXT_swap_control") ) {
        this->gl_data->wglSwapIntervalEXT = NULL;
        this->gl_data->wglGetSwapIntervalEXT = NULL;
    }

glGetString is a null pointer, as are other gl function pointers, so call
fails.  Never looked at sdl source before, so no further than that as yet.
2006-05-01 07:15:35 +00:00
Sam Lantinga
b1980bbff3 SDL_dummy_main.c:12: warning: ISO C does not allow extra â;â outside of a function 2006-05-01 06:41:17 +00:00
Sam Lantinga
cb3a0ae8da SDL_sysjoystick.c:983: warning: 'return' with a value, in function returning void 2006-05-01 06:40:00 +00:00
Patrice Mandin
7aa243af00 Declare volatile variables modified by interrupt routines 2006-04-30 21:01:25 +00:00
Sam Lantinga
fdb9a7d971 Removed redundant rm 2006-04-30 16:53:40 +00:00
Sam Lantinga
7fdf065976 We want to wrap HAVE_ALLOCA_H, not HAVE_ALLOCA. :) 2006-04-30 08:57:02 +00:00
Sam Lantinga
3ce0662faf ------- Comment #1 From Max Horn 2006-04-17 03:08 [reply] -------
Created an attachment (id=106) [edit]
Patch for src/joystick/win32/SDL_mmjoystick.c

I am not even a Windows user, so take the following with a grain of salt:

SDL_mmjoystick.c  has a function GetJoystickName which obtains the joystick
name by looking at the registry. The way it does that seems very fishy to me.
Namely, it uses the parameter "index" to construct a registry value name (BTW,
those variables used in the code are really badly named). The value of "index"
in turn equals the current value of "numdevs", as called from
SDL_SYS_JoystickInit.

I read through the MSDN docs at
<http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarinput/html/msdn_extdirect.asp>,
and I believe the simple fix is to replace line 183 of said file
  SYS_JoystickName[numdevs] = GetJoystickName(numdevs, joycaps.szRegKey);
by the following:
  SYS_JoystickName[numdevs] = GetJoystickName(SYS_JoystickID[i],
joycaps.szRegKey);

However, that is only *hiding* the real issue. Problem is, the list of
joysticks as returned by windows may contains "gaps", and the code deals
incorrectly with that. Namely those gaps occur if joysticks are
removed/(re)added, as the reporter observed.

The attached patch fixes this and another (off-by-one) issue in the code. But
since I have no Windows machine, I can't even test-compile it, so use with
caution.
2006-04-29 20:22:31 +00:00
Sam Lantinga
672a7294f4 2006-04-29 17:56:06 +00:00
Sam Lantinga
f3b20c7f43 Disable the XRandR extension by default, since KDE maximizes windows which are larger than the new resolution, and then doesn't restore their size and positition when the old resolution is restored.
The extension can be enabled with the environment variable SDL_VIDEO_X11_XRANDR=1
2006-04-29 17:54:32 +00:00
Sam Lantinga
7ff14ade60 Only use -fvisibility=hidden if SDL will define some symbols as available. :) 2006-04-29 04:08:40 +00:00
Sam Lantinga
f1a9e1bc50 [From Sam]
> BTW, when setting up parallel make, I usually use # cpus + 1, so a compile is
> running while disk access is going for another.

[From Ryan]
My experience is that this works well on Linux, but is actually slower on
PowerPC Mac OS X...not sure if that's an architecture issue or a scheduler
issue, though, and haven't tried it on Intel Mac OS X.
2006-04-28 05:46:07 +00:00
Sam Lantinga
0e85088dbf Future proof C++ code 2006-04-28 05:43:58 +00:00
Sam Lantinga
ac89c28826 Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs 2006-04-28 05:38:06 +00:00
Ryan C. Gordon
4845d174e1 fatbuild fixes:
- A change to define CXX in fatbuild, which comforts the configure script a little, even if we don't use C++ anywhere.
- Some code to see how many CPU cores exist and parallelize make across them.
- CFLAGS that apply to both archs are specified seperately (-O3, -pipe, etc)
- -fvisibility=hidden for the gcc4 builds
- a "clean", "clean-ppc" and "clean-x86" command
- Fix to SDL_config_macosx.h for the HAVE_ALLOCA_H thing.

Now builds on an Intel Mac.
2006-04-27 11:18:03 +00:00
Sam Lantinga
5895aa331a Fixed bug #101
If we lose focus at all, unlock the mouse.
2006-04-27 10:44:43 +00:00
Sam Lantinga
4c271db358 Trying to fix fatbuild.sh on intel 2006-04-27 10:21:54 +00:00
Sam Lantinga
2697684f34 Fixed compile errors on Mac OS X 2006-04-27 09:08:44 +00:00
Sam Lantinga
bc35de2e30 Implemented bug #5
Added SDL_GL_ACCELERATED_VISUAL to guarantee hardware acceleration.
2006-04-27 08:39:51 +00:00
Sam Lantinga
2a622cd891 Implemented bug #2, 117:
Date: Mon, 21 Mar 2005 12:06:14 +0100
From: Per Inge Mathisen
Subject: Re: [SDL] Outstanding patches?

The patch adds support for setting SDL_GL_SWAP_CONTROL to Windows and
X11. In Windows you can also query this enum to check that it is
working, or see what the default is - such functionality does not
exist in GLX. For more information on the standards implemented:
http://oss.sgi.com/projects/ogl-sample/registry/SGI/swap_control.txt
http://oss.sgi.com/projects/ogl-sample/registry/EXT/wgl_swap_control.txt
2006-04-27 07:59:16 +00:00
Ryan C. Gordon
922b159c45 Info on Subversion repository access. 2006-04-26 23:17:39 +00:00
Sam Lantinga
60b9732963 subversion conversion complete! 2006-04-26 20:30:11 +00:00
Sam Lantinga
281f7c82d8 Whoops, you can't use Project Builder anymore... 2006-04-22 19:50:23 +00:00
Sam Lantinga
9d9e4fd11f Added info about fatbuild.sh 2006-04-22 19:49:37 +00:00
Sam Lantinga
791ead7bbf Mac OS X fat build works! :) 2006-04-22 19:17:14 +00:00
Sam Lantinga
3a21de87f7 Date: Thu, 20 Apr 2006 10:13:34 +0200
From: Julien Lecomte
Subject: [SDL] sdl-config

I've noticed that `sdl-config' usage reports that --static-libs is
available even when it's not.
I've modified the 'sdl-config.in' file so that it no longer reports
'--static-libs' if SDL was compiled with --disable-static.
I didn't change --disable-shared behavior.
2006-04-20 16:33:51 +00:00
Sam Lantinga
8c16f464ea I think this is it... 2006-04-19 03:49:57 +00:00
Sam Lantinga
e4cfa5a25d *** empty log message *** 2006-04-17 14:27:47 +00:00
Sam Lantinga
8134d3c179 Added a note so I remember what the heck I was doing later. :) 2006-04-17 07:03:13 +00:00
Sam Lantinga
201afd083a More general fix for bug #189
The clipping is done at a higher level, and the low level functions are
passed clipped rectangles.  Drivers which don't support source clipping
have not been changed, so the image will be squished instead of clipped,
but at least they will no longer crash when the destination rect was out
of bounds.
2006-04-17 06:47:23 +00:00
Sam Lantinga
b57d5c3424 Fixed bug #189
Clip the overlay destination rectangle to the screen area on X11
2006-04-17 05:38:33 +00:00
Sam Lantinga
b03ae03cf8 Fixed bug #197
On servers with the composite extension enabled, visuals with 32-bit depth
have an alpha mask.  This is pretty neat, but SDL needs a bit more work to
handle these properly, so for now, we'll just use 24 bit depth visuals.
2006-04-17 04:54:08 +00:00
Sam Lantinga
38391f800d Use the MAKE variable when available 2006-04-17 03:58:29 +00:00
Sam Lantinga
6bb3137545 Whoops, need the actual flags here 2006-04-17 03:37:30 +00:00
Sam Lantinga
61cc027d1e Miscellaneous Mac OS X fixes 2006-04-17 03:34:28 +00:00
Sam Lantinga
b07f4df56c Date: Fri, 31 Mar 2006 18:28:55 -0500
From: Mike Frysinger
Subject: [SDL] [patch] touchup configure --help output

the current output includes a lot of "default=yes" stuff in it ... except that
it lacks the [] around it

patch attached to fix the situation
2006-04-14 06:03:09 +00:00
Sam Lantinga
62356dc030 A script to build a fat version of the SDL library... completely untested! 2006-04-14 05:43:04 +00:00
Sam Lantinga
4ffa1daabc Make sure code is only compiled if the appropriate subsystem is enabled 2006-04-14 04:46:47 +00:00