Thu, 08 Sep 2005 06:34:28 +0000 Mac Classic and CodeWarrior patches.
Ryan C. Gordon <icculus@icculus.org> [Thu, 08 Sep 2005 06:34:28 +0000] rev 1135
Mac Classic and CodeWarrior patches. --ryan. From: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@algonet.se> Subject: Re: [SDL] Updated Mac patch Date: Tue, 6 Sep 2005 15:21:27 +0200 To: A list for developers using the SDL library <sdl@libsdl.org> Earlier, I wrote: > Updated the previous Mac patch to disable Carbon by default. > Also "fixed" the SDL.spec again, so that it builds on Darwin. > > http://www.algonet.se/~afb/SDL-1.2.9-mac.patch > Also applied fine to SDL12 CVS, when I tried it. > > Haven't completed any new packaging or projects for Xcode/PB, > but it seems to build and install fine here (in development). Tested the new patch to build with old CodeWarrior and MPW, and it seems it needed some hacks with those old headers... Just in case you want to support the archeological versions - here is a small add-on to the above patch, to fix those... http://www.algonet.se/~afb/SDL-1.2.9-classic.patch I couldn't get the old CW5 projects to build without a few modifications - such as deleting the stray old header in: "CWprojects/Support/Carbon/Include/ConditionalMacros.h" ? But I updated both projects to CW6 too and built for Carbon, and it ran all of the Mac test projects without any problems. The MPW file seems to have compiled, with a small order change. As long as you're still shipping the CWProjects and MPWmake with the download, they should probably be updated/fixed ? (another "solution" would of course be to just delete them) I'll post my new projects along with the new Xcode projects later on, along with XML exports of the various .mcp files. (CW5 builds for Classic / "PPC", and CW6 builds for Carbon) It'll be packaged as a part of the next SpriteWorld X release... http://spriteworldx.sourceforge.net/ [Classic/Carbon/Win/X11] --anders
Thu, 08 Sep 2005 06:17:23 +0000 Forgot to add this with the previous Carbon/Cocoa/X11 commit.
Ryan C. Gordon <icculus@icculus.org> [Thu, 08 Sep 2005 06:17:23 +0000] rev 1134
Forgot to add this with the previous Carbon/Cocoa/X11 commit.
Thu, 08 Sep 2005 06:16:14 +0000 The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails:
Ryan C. Gordon <icculus@icculus.org> [Thu, 08 Sep 2005 06:16:14 +0000] rev 1133
The MacOSX Carbon/Cocoa/X11 all in one library patch. Relevant emails: To: SDL Developers <sdl@libsdl.org> From: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@algonet.se> Date: Mon, 30 May 2005 23:29:04 +0200 Subject: [SDL] Mac OS X Video Drivers [patch] I've updated/added the Carbon and X11 video drivers to the Mac OS X port of SDL 1.2 (the CVS version), and made the Cocoa driver and runtime *optional*. The default is still Cocoa, and the "Quartz" driver. But you can now also use "toolbox" for Carbon, and "x11" for running with Apple's (or other) X11 server: export SDL_VIDEODRIVER=x11 export SDL_VIDEO_GL_DRIVER=/usr/X11R6/lib/libGL.dylib It also checks if the frameworks are available, by a: #include <Carbon/Carbon.h> or #import <Cocoa/Cocoa.h> (this should make it configure on plain Darwin as well?) Here are the new configure targets: --enable-video-cocoa use Cocoa/Quartz video driver default=yes --enable-video-carbon use Carbon/QuickDraw video driver default=yes --enable-video-x11 use X11 video driver default=no ./configure --enable-video-cocoa --enable-video-carbon --enable-video-x11 \ --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib The Carbon version is just an updated version of the old SDL driver for Mac OS 9, and could probably be improved... (but it does work, including the Carbon version of SDLmain) If you disable cocoa, you can run with -framework Carbon only, and the C version of SDL_main.c. And if you disable carbon too, you can still use the X11 version which doesn't require SDLmain. I updated the DrawSprocket version, but did not include it. (no blitters or VRAM GWorlds etc. available on OS X anyway) Besides for Mac OS 9, I don't think there's any use for it ? And note that any performance on Mac OS X equals OpenGL anyway... You can get "fair" software SDL results on captured CG displays, but for decent frame rates you need to be using GL for rendering. Finally, here is the patch itself: http://www.algonet.se/~afb/SDL-12CVS-macvideo.patch --anders PS. It says "video", but as usual it applies to mouse/keyboard too. ------ To: A list for developers using the SDL library <sdl@libsdl.org> From: =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb@algonet.se> Date: Sun, 4 Sep 2005 10:02:15 +0200 Subject: [SDL] Updated Mac patch Updated the previous Mac patch to disable Carbon by default. Also "fixed" the SDL.spec again, so that it builds on Darwin. http://www.algonet.se/~afb/SDL-1.2.9-mac.patch Also applied fine to SDL12 CVS, when I tried it.
Thu, 25 Aug 2005 20:31:58 +0000 *** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Thu, 25 Aug 2005 20:31:58 +0000] rev 1132
*** empty log message ***
Wed, 24 Aug 2005 21:57:48 +0000 Merged the Visual C++ 6 and 7 projects so all Visual C++ users unpack the same set of projects to get started. release-1.2.9
Sam Lantinga <slouken@libsdl.org> [Wed, 24 Aug 2005 21:57:48 +0000] rev 1131
Merged the Visual C++ 6 and 7 projects so all Visual C++ users unpack the same set of projects to get started.
Wed, 24 Aug 2005 05:49:57 +0000 Updated version number
Sam Lantinga <slouken@libsdl.org> [Wed, 24 Aug 2005 05:49:57 +0000] rev 1130
Updated version number
Tue, 23 Aug 2005 15:22:03 +0000 Updated the version number...
Sam Lantinga <slouken@libsdl.org> [Tue, 23 Aug 2005 15:22:03 +0000] rev 1129
Updated the version number...
Tue, 23 Aug 2005 06:43:24 +0000 *** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Tue, 23 Aug 2005 06:43:24 +0000] rev 1128
*** empty log message ***
Tue, 23 Aug 2005 06:36:23 +0000 Date: Mon, 22 Aug 2005 04:22:46 -0400
Sam Lantinga <slouken@libsdl.org> [Tue, 23 Aug 2005 06:36:23 +0000] rev 1127
Date: Mon, 22 Aug 2005 04:22:46 -0400 From: "Ryan C. Gordon" Subject: [Fwd: SDL patch: make usage of rpath optional] Here's a small patch against current SDL CVS that makes usage of rpath optional, by passing --disable-rpath to configure. This comes in handy when redistributing SDL -- the rpath setting prevents the lib being loaded if it's not in the rpath, which makes redistributing in packages to be installed by non-root users pretty much useless.
Mon, 22 Aug 2005 14:38:31 +0000 Fix for bug reported by Michael Benfield on the SDL mailing list:
Ryan C. Gordon <icculus@icculus.org> [Mon, 22 Aug 2005 14:38:31 +0000] rev 1126
Fix for bug reported by Michael Benfield on the SDL mailing list: "I'm on Mac OS 10.3.9 with a CVS SDL 1.2.9. My understanding is that SDL_CDResume is supposed to resume play after calling SDL_CDPlay. It doesn't on my system. It returns 0 but nothing happens. Any ideas? Thanks. Mike Benfield" --ryan.
Mon, 22 Aug 2005 14:18:15 +0000 Apparently MacOS X will sometimes pass command line arguments to a Cocoa
Ryan C. Gordon <icculus@icculus.org> [Mon, 22 Aug 2005 14:18:15 +0000] rev 1125
Apparently MacOS X will sometimes pass command line arguments to a Cocoa app as an openFile() message, so we have to make sure we were launched from the Finder before accepting these as drag'n'drop documents, or they will just duplicate what's already in argc/argv.
Sun, 21 Aug 2005 08:02:23 +0000 *** empty log message ***
Sam Lantinga <slouken@libsdl.org> [Sun, 21 Aug 2005 08:02:23 +0000] rev 1124
*** empty log message ***
Sun, 21 Aug 2005 06:18:54 +0000 Date: Fri, 08 Jul 2005 22:43:48 +0200 (CEST)
Sam Lantinga <slouken@libsdl.org> [Sun, 21 Aug 2005 06:18:54 +0000] rev 1123
Date: Fri, 08 Jul 2005 22:43:48 +0200 (CEST) From: Jiri Svoboda Subject: [SDL] signal handling bug I encountered the following bug: SDL doesn't reset signal handlers for SIGTERM and SIGINT, after calling SDL_Quit these remain hooked to the handler in SDL_quit.c, being translated into SDL_QUIT events. Consequently an application that issues a SDL_Quit and remains running will ignore any SIGTERM or SIGINT., and specifically CTRL-C presses.
Sat, 20 Aug 2005 21:39:06 +0000 From Patrice Mandin:
Ryan C. Gordon <icculus@icculus.org> [Sat, 20 Aug 2005 21:39:06 +0000] rev 1122
From Patrice Mandin: "Just a request about test subdirectory: the autotools files (config.guess, config.sub, etc...) are a bit outdated, and I have to update them for my cross-compilation party. So it would be nice to have these updated. ... Just removing these files works, because then configure will use those of SDL's topdir. Could someone else check this, just to be sure? i.e. remove config.guess, config.sub, install-sh and mkinstalldirs from test subdir." I tested on Linux and MacOSX...seems to be safe, so I'm nuking the files. --ryan.
Sat, 20 Aug 2005 17:46:33 +0000 Added support for Visual C++ 2005
Sam Lantinga <slouken@libsdl.org> [Sat, 20 Aug 2005 17:46:33 +0000] rev 1121
Added support for Visual C++ 2005
Thu, 18 Aug 2005 06:46:32 +0000 Patch by me to fix crash described below.
Ryan C. Gordon <icculus@icculus.org> [Thu, 18 Aug 2005 06:46:32 +0000] rev 1120
Patch by me to fix crash described below. --ryan. To: sdl@libsdl.org From: Rainer Deyke <rainerd@eldwood.com> Date: Tue, 16 Aug 2005 01:08:18 -0600 Subject: [SDL] Bug report: SDL_CreateRGBSurface with SDL_HWSURFACE crashes If SDL is in full-screen mode with a hardware video surface on OS X, SDL_CreateRGBSurface with SDL_HWSURFACE crashes. The crash occurs on line 109 of SDL_Surface.c. This was tested on OS X 10.3.9 with both SDL 1.2.8 and the latest CVS. Here is a small C++ program that demonstrates the problem: #include "SDL.h" #include <stdio.h> namespace { void wait_for_key() { SDL_Event e; printf("%d\n", SDL_GetAppState()); while (SDL_WaitEvent(&e)) { if (e.type == SDL_KEYDOWN || e.type == SDL_QUIT) return; } } } int main(int, char *[]) { SDL_Init(SDL_INIT_VIDEO); SDL_Surface *screen = SDL_SetVideoMode(640, 480, 32, SDL_FULLSCREEN | SDL_HWSURFACE); SDL_Surface *s = SDL_CreateRGBSurface(SDL_HWSURFACE, 640, 480, 32, screen->format->Rmask, screen->format->Gmask, screen->format->Bmask, screen->format->Amask); wait_for_key(); if (s) SDL_FreeSurface(s); SDL_Quit(); printf("Success!\n"); return 0; }
Thu, 18 Aug 2005 06:18:30 +0000 SDL_GetAppState() correction when toggling fullscreen on OSX.
Ryan C. Gordon <icculus@icculus.org> [Thu, 18 Aug 2005 06:18:30 +0000] rev 1119
SDL_GetAppState() correction when toggling fullscreen on OSX. Patch by me to address this comment on the SDL mailing list: "There appears to be a serious bug with SDL_GetAppState on OS X (10.3.9). When first running in windowed mode and then switching to full screen mode by calling SDL_SetVideoMode, SDL_GetAppState returns 4 (SDL_APPACTIVE) instead of 7 (SDL_APPMOUSEFOCUS | SDL_APPINPUTFOCUS | SDL_APPACTIVE). However, the SDL application clearly does have the keyboard focus, since it is able to receive keyboard events." --ryan.
Thu, 18 Aug 2005 06:06:02 +0000 Date: Wed, 17 Aug 2005 11:23:40 -0400
Ryan C. Gordon <icculus@icculus.org> [Thu, 18 Aug 2005 06:06:02 +0000] rev 1118
Date: Wed, 17 Aug 2005 11:23:40 -0400 From: Matt L <prometheus.uw@gmail.com> To: "Ryan C. Gordon" <icculus@clutteredmind.org> Subject: SDL Patch Hio, I saw your last call on the mailing list. Here's a patch which I submitted about two weeks ago which hasn't made it in. In the current sdl.m4, there's a bug where if your configure.ac, you have AC_LANG(C++) specified, it won't properly compile and link the SDL test program when you run the configure script. This is because only the default CFLAGS is overriden in sdl.m4, and in the patch below, I've fixed it so it overrides CXXFLAGS as well, allowing it to work with g++.
Wed, 17 Aug 2005 00:19:45 +0000 From: Jim Paris <jim_jtan_com>
Ryan C. Gordon <icculus@icculus.org> [Wed, 17 Aug 2005 00:19:45 +0000] rev 1117
From: Jim Paris <jim_jtan_com> To: sdl@libsdl.org Date: Sat, 9 Jul 2005 13:59:33 -0400 Subject: [PATCH] fix locking in src/timer/SYS_timer.c SDL_SetTimer has a typo in CVS. This code was added since 1.2.8. The result is that the SDL_timer_mutex is locked twice and never unlocked, breaking systems that use a threaded timer implementation. -jim
Tue, 16 Aug 2005 09:57:16 +0000 Sleep a bit less in thread
Patrice Mandin <patmandin@gmail.com> [Tue, 16 Aug 2005 09:57:16 +0000] rev 1116
Sleep a bit less in thread
Thu, 11 Aug 2005 05:08:28 +0000 Fixed mismerged patch.
Ryan C. Gordon <icculus@icculus.org> [Thu, 11 Aug 2005 05:08:28 +0000] rev 1115
Fixed mismerged patch.
Thu, 11 Aug 2005 01:02:01 +0000 Patches to make SDL compatible with Win95 again.
Ryan C. Gordon <icculus@icculus.org> [Thu, 11 Aug 2005 01:02:01 +0000] rev 1114
Patches to make SDL compatible with Win95 again.
Thu, 11 Aug 2005 00:56:16 +0000 In MacOSX, when drag'n'dropping a document on an SDL app, or double-clicking a
Ryan C. Gordon <icculus@icculus.org> [Thu, 11 Aug 2005 00:56:16 +0000] rev 1113
In MacOSX, when drag'n'dropping a document on an SDL app, or double-clicking a document associated with the app, the document(s) are passed to SDL_main() as if they were command line arguments. Otherwise, the command line is always empty and there is no way for the app to recover this information.
Wed, 10 Aug 2005 14:30:53 +0000 Document recent audio updates
Patrice Mandin <patmandin@gmail.com> [Wed, 10 Aug 2005 14:30:53 +0000] rev 1112
Document recent audio updates
Wed, 10 Aug 2005 13:29:49 +0000 Use MiNT thread to update DMA pointers instead of unusable MFP interrupt
Patrice Mandin <patmandin@gmail.com> [Wed, 10 Aug 2005 13:29:49 +0000] rev 1111
Use MiNT thread to update DMA pointers instead of unusable MFP interrupt
Tue, 09 Aug 2005 07:28:35 +0000 Revert back to 1.6 revision
Patrice Mandin <patmandin@gmail.com> [Tue, 09 Aug 2005 07:28:35 +0000] rev 1110
Revert back to 1.6 revision
Mon, 08 Aug 2005 08:17:35 +0000 And do not forget the correct test
Patrice Mandin <patmandin@gmail.com> [Mon, 08 Aug 2005 08:17:35 +0000] rev 1109
And do not forget the correct test
Mon, 08 Aug 2005 08:06:05 +0000 Was checking wrong address for ACIA MIDI
Patrice Mandin <patmandin@gmail.com> [Mon, 08 Aug 2005 08:06:05 +0000] rev 1108
Was checking wrong address for ACIA MIDI
Sun, 07 Aug 2005 12:17:28 +0000 Can use both clocks of FDI interface on Falcon, plus digital output
Patrice Mandin <patmandin@gmail.com> [Sun, 07 Aug 2005 12:17:28 +0000] rev 1107
Can use both clocks of FDI interface on Falcon, plus digital output
Fri, 29 Jul 2005 10:59:49 +0000 Disable XBIOS in interrupt also under Magic
Patrice Mandin <patmandin@gmail.com> [Fri, 29 Jul 2005 10:59:49 +0000] rev 1106
Disable XBIOS in interrupt also under Magic
(0) -1000 -300 -100 -50 -30 +30 +50 +100 +300 +1000 +3000 tip