Commit graph

1757 commits

Author SHA1 Message Date
Sam Lantinga
c77fbca391 Added information about gcc-fat.sh to README.MacOSX
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401800
2006-05-16 07:26:48 +00:00
Sam Lantinga
2e54e83306 Fixed compiling GS YUV conversion code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401799
2006-05-16 06:53:27 +00:00
Sam Lantinga
467c8a81dd Date: Mon, 15 May 2006 17:18:34 +0300
From: Vassilis Virvilis
Subject: Re: [SDL] SDL + fbcon = weird colors (resolved)

> I am getting weird colors in 16/32 bpp in an VIA custom
> board with savagefb and in qemu (cirrusfb).

Ok looks that nowadays if you follow compiler warnings closely
all bugs will be resolved by you. This one was that a non void
function (do_mmap) was not returning anything.
I also silenced a warning since I was in janitor mode.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401798
2006-05-16 03:58:08 +00:00
Sam Lantinga
3e2af2ef39 DragonFly BSD has an older version of VGL which SDL doesn't support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401797
2006-05-15 12:22:58 +00:00
Sam Lantinga
11c5892acb Fixed corrupt image
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401796
2006-05-15 11:58:29 +00:00
Sam Lantinga
059fc960c8 OpenBSD doesn't ship with X11 library major version symlinks
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401795
2006-05-15 07:24:24 +00:00
Sam Lantinga
1e00017e0a Added yet another variant of autoconf to the list
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401794
2006-05-15 06:39:10 +00:00
Sam Lantinga
6b9e7a15fd Added yet another variant of autoconf to the list
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401793
2006-05-15 06:30:38 +00:00
Sam Lantinga
690f472d02 Fix from Marc Peter: slightly fixed Watcom makefiles for 1.2.10 release
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401792
2006-05-14 21:18:26 +00:00
Patrice Mandin
de534a37e8 Add a reminder to fix current->w,current->h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401791
2006-05-14 09:55:22 +00:00
Sam Lantinga
84d5ff0f28 Fixed alloca declaration for MPW
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401790
2006-05-14 05:20:36 +00:00
Sam Lantinga
69d1266caa Hey, whaddy know! MacOS Classic has 64-bit types!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401789
2006-05-13 16:30:59 +00:00
Sam Lantinga
dbdb927189 SDLmain compile fix
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401788
2006-05-13 05:21:59 +00:00
Patrice Mandin
4b6420b8a4 Add missing include file
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401787
2006-05-12 16:25:04 +00:00
Patrice Mandin
cd492956f5 Use the right variables to set stuff for sdl-config script
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401786
2006-05-12 16:24:30 +00:00
Sam Lantinga
8aa4c7fdb9 Fixed signed/unsigned issues
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401785
2006-05-12 04:21:19 +00:00
Sam Lantinga
9e91188591 Whoops, need a space after dnl to make it meaningful. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401784
2006-05-12 04:18:32 +00:00
Sam Lantinga
dc8db021be Should we always look in /usr/local when compiling natively?
I'm guessing we probably should, but I don't remember why this
was added in the first place.  I'm disabling it for now...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401783
2006-05-11 23:37:13 +00:00
Sam Lantinga
6eed3898de Date: Thu, 11 May 2006 19:08:05 -0400
From: Mike Frysinger
Subject: [SDL] [patch] remove limits.h hack from linux joystick code

there is a small hack in the current linux joystick code to work around broken
cross-compilers by including more than one limits.h ... at the very least,
this is not arm-specific by any means

i'm of the opinion that libsdl should not contain such things ... people
should be fixing their cross-compilers, not bloating other's source trees

patch attached to clean the cruft
-mike

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401782
2006-05-11 23:32:11 +00:00
Sam Lantinga
84a89b45e5 Date: Thu, 11 May 2006 17:09:17 -0400
From: Mike Frysinger
Subject: [SDL] [patch] teach configure about uClinux

the current configure script doesnt know about the uclinux target so this
patch fixes that
-mike

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401781
2006-05-11 23:26:45 +00:00
Patrice Mandin
4fe83bb83c Forgot to declare volatile stuff also in c file
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401780
2006-05-11 21:14:05 +00:00
Sam Lantinga
b31509f7be Fixed some bugs in string handling
Cleaned up error message code, UTF-8 is used instead of UCS2
Added detection for MPEG Layer 3 audio for more informative errors.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401779
2006-05-11 21:03:23 +00:00
Sam Lantinga
369b7e44a3 Saved a little space by not including the CodeWarrior 5 XML projects
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401778
2006-05-11 15:52:41 +00:00
Sam Lantinga
3d8f01a1f4 Fixed bug #53
Updated CWprojects.sea.bin with Anders F Björklun's CodeWarrior 5 and 6 projects.
In addition, added the following tweaks from Sam:
* Updated the version string to 1.2.10
* Removed Win32 targets from CodeWarrior 5 projects
* Cleaned up access paths
* Removed unnecessary macos_prefix.h
* Added all necessary StdCLib headers to Support:MacOS
* Added OpenGL 1.2 API headers and libraries to Support:MacOS
* Added testdyngl test program
* Removed OpenGL stub from all test programs except for testgl

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401777
2006-05-11 08:31:33 +00:00
Sam Lantinga
76685b8056 Fixed building with CodeWarrior on MacOS Classic
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401776
2006-05-11 08:09:16 +00:00
Sam Lantinga
f766db82dc Fixed MacOS Classic build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401775
2006-05-11 06:06:21 +00:00
Sam Lantinga
8ead6868f9 sdl-config doesn't include the OpenGL library in --libs
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401774
2006-05-11 04:16:39 +00:00
Sam Lantinga
1c057bf3f6 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).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401773
2006-05-11 03:45:55 +00:00
Sam Lantinga
308d06a8ee Fixed bug #226
Just to make it compile with old CodeWarrior.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401772
2006-05-11 03:21:54 +00:00
Sam Lantinga
72d910b271 Fixed bug #225
Making the old code limp along, for Carbon builds.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401771
2006-05-11 03:19:03 +00:00
Sam Lantinga
877d8909d9 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401769
2006-05-11 03:08:39 +00:00
Sam Lantinga
f557a45feb Only set Mac OS X default if both parameters are left default
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401768
2006-05-10 15:21:14 +00:00
Sam Lantinga
5bb606e842 --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401767
2006-05-10 15:00:30 +00:00
Sam Lantinga
dedf915e88 Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401766
2006-05-10 14:59:08 +00:00
Sam Lantinga
9d85d36fbd Need to use __MACOSX__ for the Mac OS X platform.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401765
2006-05-10 07:42:02 +00:00
Sam Lantinga
ee2930d6da Fixed bug #221
The Carbon build on Mac OS X uses the toolbox video driver, not quartz.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401764
2006-05-10 07:25:37 +00:00
Sam Lantinga
437e541b69 Fixed bug #222
SDL_macgl loads CFM library (OpenGLLibrary) even in Mach-O,
when it should be loading the OpenGL.framework code instead

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401763
2006-05-10 07:16:38 +00:00
Sam Lantinga
e4a7253ac3 Prevent both __MACOS__ and __MACOSX__ from being defined in Codewarrior
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401762
2006-05-10 07:08:41 +00:00
Sam Lantinga
a77c019cec Xcode has trouble compiling different files with the same name for two architectures
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401760
2006-05-10 06:12:45 +00:00
Sam Lantinga
5701bcd6bd Removed unused variable
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401759
2006-05-10 06:07:47 +00:00
Sam Lantinga
fea6ccebe3 Fixed X11 support on Mac OS X Universal build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401758
2006-05-10 05:17:58 +00:00
Sam Lantinga
24dd26200f 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401757
2006-05-10 04:05:46 +00:00
Sam Lantinga
4ff931d2b7 Fat test programs! :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401756
2006-05-09 16:10:04 +00:00
Sam Lantinga
3fc9b6a9da 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401755
2006-05-09 15:14:48 +00:00
Sam Lantinga
6129de0d80 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401754
2006-05-09 15:09:47 +00:00
Sam Lantinga
3761c04c87 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401753
2006-05-09 08:52:54 +00:00
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