Commit Graph

1883 Commits

Author SHA1 Message Date
Sam Lantinga
0145303a7d Fixed building with CodeWarrior on MacOS Classic 2006-05-11 08:09:16 +00:00
Sam Lantinga
2c1976a764 Fixed MacOS Classic build 2006-05-11 06:06:21 +00:00
Sam Lantinga
e31e073820 sdl-config doesn't include the OpenGL library in --libs 2006-05-11 04:16:39 +00:00
Sam Lantinga
4e69d001e0 Fixed bug #208
So, here's a patch with a reimplementation of QZ_SetIcon() that does what I
described above. I apologize for the delay, I've been quite busy in the last
few days.

It appears to work here on 10.4.5 PPC in the limited testing that I've done;
I'll try to test it on 10.3.9 and 10.2.8 as well, but that might take another
week or so. Please test on i386.

Regarding alpha channels, per-surface alpha, and color keys, the same semantics
as for regular blits to an RGB surface should apply (for the final icon
composited onto the dock), unless I made a mistake - except in one pathological
case: if the icon surface has an alpha channel, its SDL_SRCALPHA flag is not
set (i.e. it has been explicitly cleared, since it's on by default for RGBA
surfaces), and it has a color key, plus an explicit mask was specified (instead
of the one autogenerated from the colorkey), then the color-keyed areas appear
black instead of transparent. I found no elegant way of fixing this, was too
lazy to implement the inelegant one, and decided that it isn't worth the effort
(but if someone disagrees, I can do it).
2006-05-11 03:45:55 +00:00
Sam Lantinga
b8c61a73fd Fixed bug #226
Just to make it compile with old CodeWarrior.
2006-05-11 03:21:54 +00:00
Sam Lantinga
90f1c175ac Fixed bug #225
Making the old code limp along, for Carbon builds.
2006-05-11 03:19:03 +00:00
Sam Lantinga
a90e3bb90b Date: Wed, 10 May 2006 17:43:21 -0700
From: Eric Wing
Subject: Re: Updated tarball

Attached are additional cleanups to SDLMain.m for the files in src/
main/macosx. It looks like somebody already cleaned up most of the
issues. There is one about the class interfaces being empty which
didn't look easy to fix in a meaningful way so I left them.
2006-05-11 03:08:39 +00:00
Sam Lantinga
7abf11dbcb Only set Mac OS X default if both parameters are left default 2006-05-10 15:21:14 +00:00
Sam Lantinga
f943de3c42 2006-05-10 15:00:30 +00:00
Sam Lantinga
b9caf9b751 Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X. 2006-05-10 14:59:08 +00:00
Sam Lantinga
86c3375829 Need to use __MACOSX__ for the Mac OS X platform. 2006-05-10 07:42:02 +00:00
Sam Lantinga
b775d4c6b8 Fixed bug #221
The Carbon build on Mac OS X uses the toolbox video driver, not quartz.
2006-05-10 07:25:37 +00:00
Sam Lantinga
69c495a139 Fixed bug #222
SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O,
when it should be loading the OpenGL.framework code instead
2006-05-10 07:16:38 +00:00
Sam Lantinga
0083eea4ff Prevent both __MACOS__ and __MACOSX__ from being defined in Codewarrior 2006-05-10 07:08:41 +00:00
Sam Lantinga
5994d8e129 Xcode has trouble compiling different files with the same name for two architectures 2006-05-10 06:12:45 +00:00
Sam Lantinga
b1fed51d75 Removed unused variable 2006-05-10 06:07:47 +00:00
Sam Lantinga
17a4d6b1d7 Fixed X11 support on Mac OS X Universal build 2006-05-10 05:17:58 +00:00
Sam Lantinga
78d2138776 Date: Tue, 9 May 2006 23:01:49 -0400
From: Mike Frysinger
Subject: [SDL] [patch] fall back to using MAP_PRIVATE with mmap() in fbcon dri

trying to use MAP_SHARED with mmap() on uClinux (aka non-mmu) hosts nowadays
will simply fail since the kernel disallows it ... falling back to using
MAP_PRIVATE on these hosts is acceptable ... as such, ive attached a patch
for the fbcon driver that will fall back to using MAP_PRIVATE if mmap() with
MAP_SHARED failed

going by a grep of MAP_SHARED, the only other drivers that utilize this flag
are video/wscons, video/ps2gs, and sound/dmaaudio ... i dont think these
would appear on a non-mmu host so the patch i wrote is restricted to just
SDL_fbvideo.c ...
-mike
2006-05-10 04:05:46 +00:00
Sam Lantinga
fb2c5efc9e Fat test programs! :) 2006-05-09 16:10:04 +00:00
Sam Lantinga
01facc50f8 Fixed bug #218
Currently there are two Classic-only drivers defined in "SDL_config_macos.h",
and the ones in "SDL_config_macosx.h" are Mach-O/framework-only (i.e. not CFM)

As a workaround, I disabled CDROM and JOYSTICK when building SDL for CFM
Carbon.
2006-05-09 15:14:48 +00:00
Sam Lantinga
6f865c24cc Fixed bug #220
The AltiVec blitters don't compile, since they require __VEC__ to be enabled in
order for the compiler to understand "vector" and friends (i.e. do AltiVec)
But you don't want to turn AltiVec on globally, since then the code would only
run on a G4 (there are already runtime tests, before using the AltiVec
variants)

The solution here is to enable AltiVec locally, for the actual AltiVec code.
2006-05-09 15:09:47 +00:00
Sam Lantinga
9ef89950da Fixed bug #137
If SDL_OpenAudio() is passed zero for the desired format
fields, the following environment variables will be used
to fill them in:
	SDL_AUDIO_FREQUENCY
	SDL_AUDIO_FORMAT
	SDL_AUDIO_CHANNELS
	SDL_AUDIO_SAMPLES
If an environment variable is not specified, it will be set
to a reasonable default value.
2006-05-09 08:52:54 +00:00
Sam Lantinga
165c228d8e 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
2006-05-09 07:52:04 +00:00
Sam Lantinga
be8109d7bc More compile fixes for systems without the DPMS extension 2006-05-09 07:50:28 +00:00
Sam Lantinga
320f0deeaf Fixed build errors on systems without the DPMS extension 2006-05-09 07:45:12 +00:00
Sam Lantinga
3b10312024 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.
2006-05-09 07:26:58 +00:00
Sam Lantinga
6efcacb03f 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
2006-05-09 07:20:32 +00:00
Sam Lantinga
252e8f2a56 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.
2006-05-09 07:16:38 +00:00
Sam Lantinga
a731a5eca0 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
2006-05-09 07:05:35 +00:00
Sam Lantinga
44f0310d5c Fixed bug #106
Wait for any pending operations to complete before freeing a hardware surface.
2006-05-09 06:44:47 +00:00
Sam Lantinga
990bf31a57 Fixed DGA mode sorting and eliminated doublescan and interlaced modes 2006-05-09 06:14:11 +00:00
Sam Lantinga
46634d09b3 Disable the screensaver in DGA mode, which is even more important than X11... 2006-05-08 06:54:20 +00:00
Sam Lantinga
556a504e41 Fixed bug #203
Disable screensaver and DPMS blanking while SDL app is running.
2006-05-08 06:38:13 +00:00
Sam Lantinga
508cb27d72 2006-05-08 06:23:11 +00:00
Sam Lantinga
b6c6736b67 Get updates to the shadow surface while switched away 2006-05-08 05:36:45 +00:00
Sam Lantinga
61c0abee03 Fixed bug #49
Added support for non-blocking VT switching on the framebuffer console.
2006-05-08 05:33:02 +00:00
Sam Lantinga
3b565b12b6 Made it easier to test some things on the framebuffer console 2006-05-08 05:30:15 +00:00
Sam Lantinga
f10aa0bd77 Fixed detection of current vt when not running as root. 2006-05-08 05:17:10 +00:00
Sam Lantinga
722aba1781 Eliminate duplicate video modes 2006-05-08 04:19:03 +00:00
Sam Lantinga
0456bd7dc9 SDL_strncpy doesn't exist 2006-05-08 03:49:51 +00:00
Sam Lantinga
fe3cf1843c 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
2006-05-08 02:09:34 +00:00
Sam Lantinga
06ab9de131 2006-05-07 19:02:07 +00:00
Sam Lantinga
e96aa29503 2006-05-07 15:15:40 +00:00
Sam Lantinga
464e36af2b 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.
2006-05-07 06:20:39 +00:00
Sam Lantinga
4254115cac Fixed bug #217
Sort the DirectX video modes largest to smallest
2006-05-07 04:02:48 +00:00
Sam Lantinga
aac058065f 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
2006-05-07 03:44:58 +00:00
Sam Lantinga
1195dd8133 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.
2006-05-07 03:40:06 +00:00
Sam Lantinga
4f52a4efea 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.
2006-05-05 05:50:26 +00:00
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