Commit graph

2011 commits

Author SHA1 Message Date
Sam Lantinga
782736f3f9 Date: Mon, 8 May 2006 14:19:30 -0700
From: Bob Ippolito
Subject: SDL trunk (r2346) and Mac OS X

As for all the Carbon warnings.. the two File Manager ones should be
easy to get rid of, the QuickDraw ones won't be so easy since that
requires actual refactoring.

PBUnmountVol -> FSEjectVolumeSync
FSClose -> FSCloseFork

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401752
2006-05-09 07:52:04 +00:00
Sam Lantinga
5843b19d25 More compile fixes for systems without the DPMS extension
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401751
2006-05-09 07:50:28 +00:00
Sam Lantinga
1782676d24 Fixed build errors on systems without the DPMS extension
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401750
2006-05-09 07:45:12 +00:00
Sam Lantinga
96f27c600c Date: Mon, 8 May 2006 14:19:30 -0700
From: Bob Ippolito
Subject: SDL trunk (r2346) and Mac OS X

The current state of the trunk doesn't quite compile on Mac OS X,
I've attached a series of patches that gets it to compile and kills a
few warnings.

sdl-trunk-r2346-dlcompat-warnings.diff:
        The dlcompat thing is just loaded with incorrect type signatures ..
some of them have changed since 10.2 and others are just flat wrong.
This puts it in sync with the latest headers. People on 10.2 will get
the warnings instead of people with new kits.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401749
2006-05-09 07:26:58 +00:00
Sam Lantinga
c5debc81c7 Fixed bug #104
If your mouse cursor is not within the SDL frame and you warp the mouse, you
get an enter notify, not a motion notify.
Therefore, SDL does not update its internal mouse state.

What's about calling SDL_PrivateMouseMotion even when getting an EnterNotify?

Regards,
Johannes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401748
2006-05-09 07:20:32 +00:00
Sam Lantinga
f2e390e24c Fixed bug #144
Make sure we don't crash or deadlock if someone tries to free a timer after
the timer subsystem has been shut down.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401747
2006-05-09 07:16:38 +00:00
Sam Lantinga
a065c557ed Fixed bug #201
Here's a patch for SDL_fbevents.c that makes SDL fbcon recognize both left Alt
and right Alt (altgr). Without this, it's impossible to write a lot of
characters on a standard fi-latin1 mapped keyboard, like "@£${[]}\|~".

/Jonatan

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401746
2006-05-09 07:05:35 +00:00
Sam Lantinga
a93e2caf5c Fixed bug #106
Wait for any pending operations to complete before freeing a hardware surface.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401745
2006-05-09 06:44:47 +00:00
Sam Lantinga
f210611d6f Fixed DGA mode sorting and eliminated doublescan and interlaced modes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401744
2006-05-09 06:14:11 +00:00
Sam Lantinga
52c114a331 Disable the screensaver in DGA mode, which is even more important than X11...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401743
2006-05-08 06:54:20 +00:00
Sam Lantinga
9cdedc648e Fixed bug #203
Disable screensaver and DPMS blanking while SDL app is running.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401742
2006-05-08 06:38:13 +00:00
Sam Lantinga
b99279d95e --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401741
2006-05-08 06:23:11 +00:00
Sam Lantinga
c69a0ae2af Get updates to the shadow surface while switched away
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401740
2006-05-08 05:36:45 +00:00
Sam Lantinga
4dadaeae5a Fixed bug #49
Added support for non-blocking VT switching on the framebuffer console.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401739
2006-05-08 05:33:02 +00:00
Sam Lantinga
11037522c7 Made it easier to test some things on the framebuffer console
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401738
2006-05-08 05:30:15 +00:00
Sam Lantinga
9cbe216d62 Fixed detection of current vt when not running as root.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401737
2006-05-08 05:17:10 +00:00
Sam Lantinga
064c583f72 Eliminate duplicate video modes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401736
2006-05-08 04:19:03 +00:00
Sam Lantinga
c9fe6a7e45 SDL_strncpy doesn't exist
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401735
2006-05-08 03:49:51 +00:00
Sam Lantinga
e869c2f9b8 Date: Sun, 7 May 2006 19:22:33 -0400
From: Mike Frysinger
Subject: [SDL] [patch] fix building with DirectFB-0.9.25.1

another DirectFB release, another small bit of API breakage :)

this time around, DIKI_ALTGR has been removed and DIKI_ALT_R is supposed to be
used ... DIKI_ALT_R is not a new define, so there shouldnt be any need for
checking the DirectFB version ... it should work with older DirectFB's as
well

thanks to Sascha Schwarz for pointing this out on the Gentoo bugzilla:
http://bugs.gentoo.org/132571
-mike

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401734
2006-05-08 02:09:34 +00:00
Sam Lantinga
4b13c82ddc --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401733
2006-05-07 19:02:07 +00:00
Sam Lantinga
0d310117ea --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401732
2006-05-07 15:15:40 +00:00
Sam Lantinga
21a8ab74a3 Fixed bug #102
Improved GPM mouse protocol detection.
The original patch had a bunch of bugs, so I completely rewrote it to hopefully fix them, and to support more protocols.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401731
2006-05-07 06:20:39 +00:00
Sam Lantinga
3a0d72c6e5 Fixed bug #217
Sort the DirectX video modes largest to smallest

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401730
2006-05-07 04:02:48 +00:00
Sam Lantinga
a74719991c Fixed bug #216
The attached files allow building the SDL library and tests with the Open
Watcom compiler for Windows:
- static library or DLL
- Debug or Release builds available
- uses register calling convention of Open Watcom
- wmake target to build the SDL test samples

Following is a table that shows what works and what doesn't, yet:
checkkeys       +
graywin         +
loopwave        +
testalpha       +
testbitmap      +
testdyngl       +
testerror       +
testfile        +
testgamma       +
testgl          +
testhread       +
testiconv       - (all failed)
testkeys        +
testlock        + (after removing calls to raise() from signal handler)
testoverlay     + (needs 'set SDL_VIDEODRIVER=directx')
testoverlay2    + (-"-)
testpalette     +
testplatform    +
testsem         +
testsprite      +
testtimer       +
testver         +
testvidinfo     +
testwin         - (fading doesn't seem right)
testwm          +
torturethread   +
testcdrom       +
testjoystick    not tested
threadwin       +

TODO:
- make stack calling convention work (has linking issues with dxguid.lib)
- perform testjoystick (I don't have a joystick)
- investigate fading in testwin
- merge with OS/2 port
- add DOS target

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401729
2006-05-07 03:44:58 +00:00
Sam Lantinga
b4ba6518d6 Fixed bug #215
The current SVN trunk is missing the SDLCALL specifier at numerous locations.

It has to be added for all (possibly user provided) callbacks.

I stumbled over this while creating a makefile for the OpenWatcom compiler for
Win32.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401728
2006-05-07 03:40:06 +00:00
Sam Lantinga
cab8a203a7 Fixed bug #80
Date: 21 Apr 2003 17:20:20 +0100
From: Alan Swanson <swanson@uklinux.net>
Subject: [SDL] New XFree 4.3 Video Mode Patch


If you look at the unsorted list of modes returned by X, here's mine;

 1280 x 1024 @ 85.0  >
 1024 x 768 @ 100.3  > USER
 800 x 600 @ 125.5   > SET
 640 x 480 @ 124.9   >
 1280 x 1024 @ 75.0  ]
 1280 x 1024 @ 60.0  ]
 1280 x 960 @ 85.0   ] X11
 1280 x 960 @ 60.0   ] AUTO
 1152 x 864 @ 75.0   ]=20
 1152 x 768 @ 54.8   ]
 960 x 720 @ 120.0   ]
...
 640 x 400 @ 85.1    ] 256k
 576 x 432 @ 150.0   ] 249k PIXEL
 640 x 350 @ 85.1    ] 224k COUNT
 576 x 384 @ 109.6   ] 221k
...

The user set modes come first followed by X set modes which are ordered
by decreasing number of pixels and refresh.

The reason why every other library or program not using SDL working is
due to SDL scanning the modes in reverse getting X11 provided modes
modes with the lowest refresh.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401727
2006-05-05 05:50:26 +00:00
Sam Lantinga
572d530a66 Fixed bug #196
Use the title and icon stored in the SDL video info, when creating X11 windows.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401726
2006-05-05 05:09:10 +00:00
Sam Lantinga
732fcc2ab0 --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401725
2006-05-04 16:52:53 +00:00
Sam Lantinga
daab242a93 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401724
2006-05-04 16:51:07 +00:00
Sam Lantinga
b8685c4495 The install target depends on the libraries being built
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401723
2006-05-04 13:47:19 +00:00
Sam Lantinga
e8d0a49694 Updated to include new languages and platform support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401722
2006-05-04 12:08:05 +00:00
Sam Lantinga
75263053fb 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401721
2006-05-04 11:59:55 +00:00
Sam Lantinga
92a1f4863c Fixed execv warning when libtool creates wrapper executables
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401720
2006-05-03 16:35:29 +00:00
Sam Lantinga
b74b770864 Patch from Dmitry Yakimov to fix building on WinCE
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401719
2006-05-03 04:11:38 +00:00
Sam Lantinga
2c19f77a0f Added instructions for copying SDL_config.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401718
2006-05-02 15:18:07 +00:00
Sam Lantinga
5a7107c1e0 Updated OS/2 project files
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401717
2006-05-02 03:06:33 +00:00
Sam Lantinga
083bef0d9c Yeah, that's what I meant. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401716
2006-05-01 23:13:16 +00:00
Sam Lantinga
0526b1fc8a Using the SDL C runtime functions
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401715
2006-05-01 11:07:04 +00:00
Sam Lantinga
d8aace2ce7 Don't add NONE/bin to the path - inexplicably fixes building on mingw+msys, apparently
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401714
2006-05-01 07:23:46 +00:00
Sam Lantinga
1a4e90b856 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401713
2006-05-01 07:15:35 +00:00
Sam Lantinga
c3d59105d9 SDL_dummy_main.c:12: warning: ISO C does not allow extra â;â outside of a function
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401711
2006-05-01 06:41:17 +00:00
Sam Lantinga
27fdaa8880 SDL_sysjoystick.c:983: warning: 'return' with a value, in function returning void
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401710
2006-05-01 06:40:00 +00:00
Patrice Mandin
39b3be9d6b Declare volatile variables modified by interrupt routines
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401709
2006-04-30 21:01:25 +00:00
Sam Lantinga
d257f80e54 Removed redundant rm
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401708
2006-04-30 16:53:40 +00:00
Sam Lantinga
46eecc57a6 We want to wrap HAVE_ALLOCA_H, not HAVE_ALLOCA. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401707
2006-04-30 08:57:02 +00:00
Sam Lantinga
85028a30ad ------- 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401706
2006-04-29 20:22:31 +00:00
Sam Lantinga
2efcd9c6dc --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401705
2006-04-29 17:56:06 +00:00
Sam Lantinga
41c2e03aa4 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401704
2006-04-29 17:54:32 +00:00
Sam Lantinga
ff8de4f06a Only use -fvisibility=hidden if SDL will define some symbols as available. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401703
2006-04-29 04:08:40 +00:00
Sam Lantinga
f573eff4b8 [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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401681
2006-04-28 05:46:07 +00:00