0xdroid:external_libsdl-12.git
8 years ago[libsdl] Initial Android port of famous libSDL
Jim Huang [Thu, 17 Sep 2009 17:59:03 +0000 (01:59 +0800)]
[libsdl] Initial Android port of famous libSDL

Implemented:
  - Android Surface video output (RGB565 only)
  - Android key event handling via libui

8 years agoUse the plug: ALSA devices for surround sound formats, which have automatic sample...
slouken [Tue, 13 Oct 2009 09:59:20 +0000 (09:59 +0000)]
Use the plug: ALSA devices for surround sound formats, which have automatic sample format/rate conversion.
Based on feedback from the ALSA development mailing list:
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-October/022267.html

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5095 c70aab31-4412-0410-b14c-859654838e24

8 years agoSwitched from setting the period size and count to setting the buffer size directly...
slouken [Tue, 13 Oct 2009 09:56:15 +0000 (09:56 +0000)]
Switched from setting the period size and count to setting the buffer size directly, based on feedback from the ALSA development list:
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-October/022267.html

This has the nice side effect of reducing latency on my SBLive! card.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5094 c70aab31-4412-0410-b14c-859654838e24

8 years agoALSA's idea of a "frame" is the same as SDL's idea of a "sample". The frame is a...
slouken [Tue, 13 Oct 2009 09:35:37 +0000 (09:35 +0000)]
ALSA's idea of a "frame" is the same as SDL's idea of a "sample".  The frame is a single sample on a single channel, and we've defined the frames for each channel as being interleaved.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5093 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed debug code to print correct values
slouken [Tue, 13 Oct 2009 09:24:05 +0000 (09:24 +0000)]
Fixed debug code to print correct values
Passed a meaningful value to snd_pcm_sw_params_set_start_threshold()

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5092 c70aab31-4412-0410-b14c-859654838e24

8 years agoOn recent distributions ALSA pipes streams through PulseAudio anyway, so using PulseA...
slouken [Tue, 13 Oct 2009 08:42:40 +0000 (08:42 +0000)]
On recent distributions ALSA pipes streams through PulseAudio anyway, so using PulseAudio first when it's available will improve latency and reduce ALSA configuration quirks.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5091 c70aab31-4412-0410-b14c-859654838e24

8 years agoCorrected my snd_pcm_writei fix.
icculus [Tue, 13 Oct 2009 08:27:28 +0000 (08:27 +0000)]
Corrected my snd_pcm_writei fix.

Apparently ALSA says "frames" but it means samples...you don't split this into
 groups by number of channels.

The adventure continues.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5090 c70aab31-4412-0410-b14c-859654838e24

8 years agoOnly show the dynamic audio libraries if we'll be dynamically loading them
slouken [Tue, 13 Oct 2009 06:45:02 +0000 (06:45 +0000)]
Only show the dynamic audio libraries if we'll be dynamically loading them

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5084 c70aab31-4412-0410-b14c-859654838e24

8 years agoSimplify and improve dynamic library detection, taken from SDL_image
slouken [Tue, 13 Oct 2009 05:20:09 +0000 (05:20 +0000)]
Simplify and improve dynamic library detection, taken from SDL_image

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5079 c70aab31-4412-0410-b14c-859654838e24

8 years agoWe don't need dlvsym() for ALSA anymore, yay!
slouken [Tue, 13 Oct 2009 04:23:34 +0000 (04:23 +0000)]
We don't need dlvsym() for ALSA anymore, yay!

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5078 c70aab31-4412-0410-b14c-859654838e24

8 years agoMerged fix from SDL 1.3
slouken [Mon, 12 Oct 2009 23:21:19 +0000 (23:21 +0000)]
Merged fix from SDL 1.3

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5077 c70aab31-4412-0410-b14c-859654838e24

8 years agoSteven Noonan to sdl
slouken [Mon, 12 Oct 2009 21:07:12 +0000 (21:07 +0000)]
Steven Noonan to sdl

While trying to build the SDLMain.m included with SDL 1.2.14, with
#define SDL_USE_NIB_FILE 1:

/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:
In function '-[SDLMain fixMenu:withAppName:]':
/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:122:
warning: 'sizeToFit' is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSMenu.h:281)
/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:
In function 'main':
/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:376:
warning: 'poseAsClass:' is deprecated (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:127)
/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:376:
error: 'poseAsClass:' is unavailable (declared at
/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:127)
/Users/steven/Development/darwinia/targets/macosx/Darwinia/SDLMain.m:377:
warning: passing argument 2 of 'NSApplicationMain' from incompatible
pointer type

Eric Wing to Sam

I don't have time today to look at this in detail, but the problem is definitely the poseAsClass: method.
This was deprecated in Obj-C 2.0 and not retained in 64-bit.

I've never used this method and it has always been limited to esoteric uses. I think this is why Apple wanted to dump it (among complicating some other things they do). I have read about others getting bit by this when migrating. Long story short, there really isn't a migration path for this method. The question that then must be asked is why are we using it (what does it accomplish), and then figure out the 'proper' way of accomplishing that.

Glancing at SDLMain.m, it's not obvious to me why it is there or what it is really accomplishing. My only speculation is that NSApplicationMain hardcodes something to look for NSApplication and a subclass (SDLApplication) fails for some reason (assuming that the original coder did this for good reason).

Three thoughts come to mind.
1) The Info.plist has properties to control things related to the startup class and nib.
NSPrincipalClass, NSMainNibFile

Maybe principle class needs to be SDLApplication and we can delete the poseAs

2) I was told that 10.6 introduced new APIs to make programatic NIB wrangling and avoidance easier. Unfortunately, I don't know the specifics.

3) Instead of subclassing NSApplication in SDLMain.m, maybe we can just add a category. It looks like the following is the only thing that is done (quick glance):

@interface SDLApplication : NSApplication
@end

@implementation SDLApplication
/* Invoked from the Quit menu item */
- (void)terminate:(id)sender
{
   /* Post a SDL_QUIT event */
   SDL_Event event;
   event.type = SDL_QUIT;
   SDL_PushEvent(&event);
}
@end

So instead, we change this to: (warning written in mail and untested)

@interface NSApplication (SDLApplication)
- (void) terminate:(id)sender;
@end

@implementation NSApplication (SDLApplication)
/* Invoked from the Quit menu item */
- (void)terminate:(id)sender
{
   /* Post a SDL_QUIT event */
   SDL_Event event;
   event.type = SDL_QUIT;
   SDL_PushEvent(&event);
}
@end

Then everywhere SDLApplication is used, we change it to NSApplication (and remove the poseAsClass line).

Perhaps you could ask the bug reporter to try this solution (#3).
And if that fails, maybe try #1.

-Eric

Steven Noonan to Sam

The suggested change (diff below) seems to work fine.

- Steven

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5076 c70aab31-4412-0410-b14c-859654838e24

8 years agoJoystick patch from FreeBSD ports system
slouken [Mon, 12 Oct 2009 09:32:55 +0000 (09:32 +0000)]
Joystick patch from FreeBSD ports system

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5072 c70aab31-4412-0410-b14c-859654838e24

8 years agoForcibly disabled MMX mixers.
icculus [Mon, 12 Oct 2009 08:58:12 +0000 (08:58 +0000)]
Forcibly disabled MMX mixers.

  Hopefully fixes Bugzilla #649.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5071 c70aab31-4412-0410-b14c-859654838e24

8 years agoWhoops, need to convert from bits to bytes for frame size.
icculus [Mon, 12 Oct 2009 08:18:36 +0000 (08:18 +0000)]
Whoops, need to convert from bits to bytes for frame size.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5069 c70aab31-4412-0410-b14c-859654838e24

8 years agoCorrected misuse of snd_pcm_writei() in ALSA driver.
icculus [Mon, 12 Oct 2009 08:06:40 +0000 (08:06 +0000)]
Corrected misuse of snd_pcm_writei() in ALSA driver.

  Hopefully fixes Bugzilla #650.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5068 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need to be fixed up.
slouken [Sat, 10 Oct 2009 15:10:06 +0000 (15:10 +0000)]
Added support for SDL_VIDEO_FULLSCREEN_DISPLAY, but mouse events need to be fixed up.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5034 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HE...
slouken [Sat, 10 Oct 2009 15:06:04 +0000 (15:06 +0000)]
Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HEAD on X11.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5033 c70aab31-4412-0410-b14c-859654838e24

8 years agoPut the braces on the next line so vi can find the beginning of the function.
slouken [Sat, 10 Oct 2009 14:59:32 +0000 (14:59 +0000)]
Put the braces on the next line so vi can find the beginning of the function.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5032 c70aab31-4412-0410-b14c-859654838e24

8 years agoDisable double buffer for Milan. Also set current width,height after we read it.
pmandin [Sat, 10 Oct 2009 10:28:05 +0000 (10:28 +0000)]
Disable double buffer for Milan. Also set current width,height after we read it.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5026 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded missing caca files
slouken [Sat, 10 Oct 2009 10:17:51 +0000 (10:17 +0000)]
Added missing caca files

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5024 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #838
slouken [Sat, 10 Oct 2009 10:15:35 +0000 (10:15 +0000)]
Fixed bug #838

 Ozkan Sezer      2009-10-10 01:45:27 PDT

sdlenvvars.html doesn't list pulse among the supported values for
SDL_AUDIODRIVER var.  Attached a quick patch to remedy that, hopefully placing
the entry in the right order.  Regards.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5023 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdapted from Debian patch: 320_activate_xrandr_on_default.diff
slouken [Sat, 10 Oct 2009 10:14:01 +0000 (10:14 +0000)]
Adapted from Debian patch: 320_activate_xrandr_on_default.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5022 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 310_segfault_noGLX.diff
slouken [Sat, 10 Oct 2009 10:10:36 +0000 (10:10 +0000)]
Debian patch: 310_segfault_noGLX.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5021 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: f230_manpages.diff
slouken [Sat, 10 Oct 2009 10:09:01 +0000 (10:09 +0000)]
Debian patch: f230_manpages.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5020 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 218_joystick_memmove.diff
slouken [Sat, 10 Oct 2009 10:01:38 +0000 (10:01 +0000)]
Debian patch: 218_joystick_memmove.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5018 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 216_page_size.diff
slouken [Sat, 10 Oct 2009 09:59:29 +0000 (09:59 +0000)]
Debian patch: 216_page_size.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5017 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #833
slouken [Sat, 10 Oct 2009 09:58:32 +0000 (09:58 +0000)]
Fixed bug #833

Fixed errors with older autoconf

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5016 c70aab31-4412-0410-b14c-859654838e24

8 years agoDon't double-include sys/param.h
slouken [Sat, 10 Oct 2009 09:43:50 +0000 (09:43 +0000)]
Don't double-include sys/param.h

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5013 c70aab31-4412-0410-b14c-859654838e24

8 years agoWhoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version
slouken [Sat, 10 Oct 2009 09:43:08 +0000 (09:43 +0000)]
Whoops, FreeBSD 6.2 doesn't define __FreeBSD_kernel_version

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5012 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdapted from 215_kfreebsd_gnu.diff
slouken [Sat, 10 Oct 2009 09:38:02 +0000 (09:38 +0000)]
Adapted from 215_kfreebsd_gnu.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5011 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 214_missing_mmx_blit.diff
slouken [Sat, 10 Oct 2009 09:28:35 +0000 (09:28 +0000)]
Debian patch: 214_missing_mmx_blit.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5009 c70aab31-4412-0410-b14c-859654838e24

8 years agoMade typedef for SDL_bool the same as the other typedefs.
slouken [Sat, 10 Oct 2009 09:22:11 +0000 (09:22 +0000)]
Made typedef for SDL_bool the same as the other typedefs.
If this causes problems on any compiler, please report a bug to
http://bugzilla.libsdl.org/
and include the platform and version of compiler you're using.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5007 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded patch note for revision 5005
slouken [Sat, 10 Oct 2009 09:21:09 +0000 (09:21 +0000)]
Added patch note for revision 5005

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5006 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 209_alsa_priority.diff
slouken [Sat, 10 Oct 2009 09:07:51 +0000 (09:07 +0000)]
Debian patch: 209_alsa_priority.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5005 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 050_altivec_detection.diff
slouken [Sat, 10 Oct 2009 09:03:08 +0000 (09:03 +0000)]
Debian patch: 050_altivec_detection.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5004 c70aab31-4412-0410-b14c-859654838e24

8 years agoChanged environment variable to match Debian patch 205_lock_keys.diff
slouken [Sat, 10 Oct 2009 09:02:17 +0000 (09:02 +0000)]
Changed environment variable to match Debian patch 205_lock_keys.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5003 c70aab31-4412-0410-b14c-859654838e24

8 years agoDisable iPodLinux code by default (can be enabled with --enable-ipod)
slouken [Sat, 10 Oct 2009 08:59:28 +0000 (08:59 +0000)]
Disable iPodLinux code by default (can be enabled with --enable-ipod)

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5002 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 040_propagate_pic_to_nasm.diff
slouken [Sat, 10 Oct 2009 08:56:01 +0000 (08:56 +0000)]
Debian patch: 040_propagate_pic_to_nasm.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5001 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 030_pulseaudio_enable.diff
slouken [Sat, 10 Oct 2009 08:50:35 +0000 (08:50 +0000)]
Debian patch: 030_pulseaudio_enable.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@5000 c70aab31-4412-0410-b14c-859654838e24

8 years agoDebian patch: 020_libcaca_new_api.diff
slouken [Sat, 10 Oct 2009 08:46:06 +0000 (08:46 +0000)]
Debian patch: 020_libcaca_new_api.diff

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4999 c70aab31-4412-0410-b14c-859654838e24

8 years agoUpdated change log with recent checkins
slouken [Sat, 10 Oct 2009 08:11:36 +0000 (08:11 +0000)]
Updated change log with recent checkins

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4998 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #627
slouken [Sat, 10 Oct 2009 07:48:15 +0000 (07:48 +0000)]
Fixed bug #627

Increased accuracy of alpha blend calculation

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4993 c70aab31-4412-0410-b14c-859654838e24

8 years agoMoved to stable ALSA API.
icculus [Sat, 10 Oct 2009 07:33:18 +0000 (07:33 +0000)]
Moved to stable ALSA API.

This cleans up a few problems with our use of the ancient ALSA 0.9 API.

This means we can ditch the dlvsym() nonsense and use SDL_LoadFunction(), too.

 Fixes Bugzilla #745.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4991 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #634
slouken [Sat, 10 Oct 2009 07:30:00 +0000 (07:30 +0000)]
Fixed bug #634

If TranslateMessage() isn't done, then IME messages aren't generated.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4990 c70aab31-4412-0410-b14c-859654838e24

8 years agoCache the swap control setting, even on Mesa.
icculus [Sat, 10 Oct 2009 06:38:02 +0000 (06:38 +0000)]
Cache the swap control setting, even on Mesa.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4987 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed incorrect return value test for SGI swap control.
icculus [Sat, 10 Oct 2009 05:21:31 +0000 (05:21 +0000)]
Fixed incorrect return value test for SGI swap control.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4984 c70aab31-4412-0410-b14c-859654838e24

8 years agoDefault value for SGI swap control GL attribute should be -1.
icculus [Sat, 10 Oct 2009 05:17:47 +0000 (05:17 +0000)]
Default value for SGI swap control GL attribute should be -1.

Explicitly try to set it if you want a different value. Different glX
 implementations appear to have different defaults for this, and you can't
 query them for the current value.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4983 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #798
slouken [Sat, 10 Oct 2009 02:11:07 +0000 (02:11 +0000)]
Fixed bug #798

kty@lavabit.com      2009-09-19 14:19:04 PDT

The stable release of SDL 1.2.13 for BeOS/Haiku has a bug in
BE_FindClosestFSMode that causes it to sometimes not select the best mode when
going fullscreen. There are in fact two bugs in the implementation but I will
not go into specifics because there is already a patch for it in the developer
SVN 1.3. However I am still reporting it because I believe the following code
is a better patch for the issue. The current implementation on SVN only works
if it is able to find an exact match for the requested mode. However, by
scanning from lowest-to-highest resolution instead of highest-to-lowest, one
can find the best mode at all times

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4982 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #831
slouken [Sat, 10 Oct 2009 02:03:53 +0000 (02:03 +0000)]
Fixed bug #831

 Andrey      2009-10-09 08:08:04 PDT

gapi_hires_fix

I made a mistake with the conclusions.
And last time I as was mistaken with conclusions.
Now I thought about in more detail the algorithm works.
I have made it that the project fheroes2 well worked.
The result of my work in attachment.
I have a possibility to check up it on different models pocketpc.
I checked various modes screen of 320x320, 320x240, 640x480, 800x400.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4981 c70aab31-4412-0410-b14c-859654838e24

8 years agoRemove sdl.pc during "make uninstall"
icculus [Thu, 8 Oct 2009 09:02:03 +0000 (09:02 +0000)]
Remove sdl.pc during "make uninstall"

 Fixes Bugzilla #813 for the 1.2 branch.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4975 c70aab31-4412-0410-b14c-859654838e24

8 years agoAllow Unicode filenames in RWOPS on Windows.
icculus [Thu, 8 Oct 2009 07:48:37 +0000 (07:48 +0000)]
Allow Unicode filenames in RWOPS on Windows.

Fixes Bugzilla #733.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4974 c70aab31-4412-0410-b14c-859654838e24

8 years ago Ozkan Sezer 2009-04-01 23:17:13 PDT
slouken [Thu, 8 Oct 2009 07:45:55 +0000 (07:45 +0000)]
 Ozkan Sezer      2009-04-01 23:17:13 PDT

This change should be applied to the 1.2 branch, too, because the svn version
SDL_net requires it.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4973 c70aab31-4412-0410-b14c-859654838e24

8 years agoUpdate config.guess and config.sub
slouken [Thu, 8 Oct 2009 07:09:04 +0000 (07:09 +0000)]
Update config.guess and config.sub

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4972 c70aab31-4412-0410-b14c-859654838e24

8 years agoSDL 1.2.14 is a recommended update.
slouken [Wed, 7 Oct 2009 08:03:32 +0000 (08:03 +0000)]
SDL 1.2.14 is a recommended update.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4966 c70aab31-4412-0410-b14c-859654838e24

8 years agoUpdated documentation with major changes for 1.2.14
slouken [Wed, 7 Oct 2009 08:00:20 +0000 (08:00 +0000)]
Updated documentation with major changes for 1.2.14

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4965 c70aab31-4412-0410-b14c-859654838e24

8 years agoSuSE 11.1 installs directfb-config without directfb-devel, so check to
slouken [Wed, 7 Oct 2009 06:11:19 +0000 (06:11 +0000)]
SuSE 11.1 installs directfb-config without directfb-devel, so check to
make sure the development headers are actually available!

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4963 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed building without OpenGL support
slouken [Wed, 7 Oct 2009 06:10:40 +0000 (06:10 +0000)]
Fixed building without OpenGL support

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4962 c70aab31-4412-0410-b14c-859654838e24

8 years agoEric Wing to Sam
slouken [Tue, 6 Oct 2009 03:06:16 +0000 (03:06 +0000)]
Eric Wing to Sam

Sorry, here's another small fix.
I changed two options in the Doxyfiles in the XcodeDocSet directories which should allow at least a brief description to be seen in Quick Help.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4955 c70aab31-4412-0410-b14c-859654838e24

8 years agoUpdated libtool to version 2.2.6a
slouken [Sun, 4 Oct 2009 22:31:25 +0000 (22:31 +0000)]
Updated libtool to version 2.2.6a

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4951 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed make dist
slouken [Sun, 4 Oct 2009 20:45:55 +0000 (20:45 +0000)]
Fixed make dist

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4946 c70aab31-4412-0410-b14c-859654838e24

8 years agoSplit acinclude.m4 into its constituent parts for easy upgrading
slouken [Sun, 4 Oct 2009 20:31:21 +0000 (20:31 +0000)]
Split acinclude.m4 into its constituent parts for easy upgrading

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4944 c70aab31-4412-0410-b14c-859654838e24

8 years agoMake the temporary black window be the maximum of all visible dimensions
slouken [Sun, 4 Oct 2009 20:30:45 +0000 (20:30 +0000)]
Make the temporary black window be the maximum of all visible dimensions

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4943 c70aab31-4412-0410-b14c-859654838e24

8 years agoEric Wing to Sam
slouken [Sun, 4 Oct 2009 16:29:56 +0000 (16:29 +0000)]
Eric Wing to Sam

I discovered the prefix headers in the templates for *Leopard were not working correctly. Fixes attached for SDL 1.2.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4938 c70aab31-4412-0410-b14c-859654838e24

8 years agoYou should check for the C compiler before you set CFLAGS. :)
slouken [Fri, 2 Oct 2009 13:50:50 +0000 (13:50 +0000)]
You should check for the C compiler before you set CFLAGS. :)

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4911 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed nasm detection for newer autotools
slouken [Fri, 2 Oct 2009 11:26:59 +0000 (11:26 +0000)]
Fixed nasm detection for newer autotools

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4903 c70aab31-4412-0410-b14c-859654838e24

8 years agoUpdated version for mingw32 build
slouken [Fri, 2 Oct 2009 11:12:04 +0000 (11:12 +0000)]
Updated version for mingw32 build

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4902 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed VC2005 compiler warnings
slouken [Wed, 30 Sep 2009 20:38:28 +0000 (20:38 +0000)]
Fixed VC2005 compiler warnings

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4896 c70aab31-4412-0410-b14c-859654838e24

8 years agoI just tested DGA mouse motion with X.org 1.6.0 and it's working fine,
slouken [Wed, 30 Sep 2009 04:49:57 +0000 (04:49 +0000)]
I just tested DGA mouse motion with X.org 1.6.0 and it's working fine,
with evdev and the G5 mouse.  It's not creating a ton of events here.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4895 c70aab31-4412-0410-b14c-859654838e24

8 years agoEric Wing to Sam
slouken [Wed, 30 Sep 2009 04:17:38 +0000 (04:17 +0000)]
Eric Wing to Sam

This includes the DocSet generation plus some .svn purging for packaging. I also gave the new (Snow*)Leopard templates a SDL icon.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4894 c70aab31-4412-0410-b14c-859654838e24

8 years agoMake SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) work with GLX_SGI_swap_control.
icculus [Tue, 29 Sep 2009 13:50:33 +0000 (13:50 +0000)]
Make SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL) work with GLX_SGI_swap_control.

  Fixes Bugzilla #697.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4893 c70aab31-4412-0410-b14c-859654838e24

8 years agoRemoved isCustom ... not used any more.
icculus [Tue, 29 Sep 2009 13:42:33 +0000 (13:42 +0000)]
Removed isCustom ... not used any more.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4892 c70aab31-4412-0410-b14c-859654838e24

8 years agoRemoved duplicate memset() calls.
icculus [Tue, 29 Sep 2009 13:40:34 +0000 (13:40 +0000)]
Removed duplicate memset() calls.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4891 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed SDL_VIDEO_WINDOW_POS environment variable for Quartz target.
icculus [Tue, 29 Sep 2009 13:07:36 +0000 (13:07 +0000)]
Fixed SDL_VIDEO_WINDOW_POS environment variable for Quartz target.

  Fixes Bugzilla #628.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4890 c70aab31-4412-0410-b14c-859654838e24

8 years agoBatch x11 dga mouse motion events into a single SDL event.
icculus [Tue, 29 Sep 2009 11:28:43 +0000 (11:28 +0000)]
Batch x11 dga mouse motion events into a single SDL event.

Untested attempt to fix Bugzilla #609. Do not merge into 1.3 in any case.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4889 c70aab31-4412-0410-b14c-859654838e24

8 years agoReverted revision 4880 since this breaks installation on Mac OS X.
slouken [Tue, 29 Sep 2009 06:31:29 +0000 (06:31 +0000)]
Reverted revision 4880 since this breaks installation on Mac OS X.

We'll just punt the bug for 1.2.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4886 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed strict aliasing (or inline asm?) issue.
icculus [Tue, 29 Sep 2009 04:03:58 +0000 (04:03 +0000)]
Fixed strict aliasing (or inline asm?) issue.

Some versions of GCC need this fix or alpha blending is broken.

  Fixes Bugzilla #648.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4885 c70aab31-4412-0410-b14c-859654838e24

8 years agoTemporary band-aid for bug #575
slouken [Tue, 29 Sep 2009 00:37:36 +0000 (00:37 +0000)]
Temporary band-aid for bug #575

It looks like newer kernels do the logical device mapping in the driver,
so this code crashes.  I don't have one of these nor do I have remote
access to debug this, so I'm disabling the logical mapping for now.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4882 c70aab31-4412-0410-b14c-859654838e24

8 years agoRemoved -rpath from link line.
icculus [Mon, 28 Sep 2009 18:21:58 +0000 (18:21 +0000)]
Removed -rpath from link line.

We don't need to look in the library's install dir for dependencies;
 They are all system libraries that should be in other path lists anyhow.

 Fixes Bugzilla #499.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4880 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded *.dSYM (Mac OS X debug symbols) to svn:ignore list for test dir.
icculus [Mon, 28 Sep 2009 18:16:48 +0000 (18:16 +0000)]
Added *.dSYM (Mac OS X debug symbols) to svn:ignore list for test dir.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4879 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed compile issue
slouken [Mon, 28 Sep 2009 07:58:58 +0000 (07:58 +0000)]
Fixed compile issue

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4876 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded keyboard output for debugging bug #659
slouken [Mon, 28 Sep 2009 07:04:25 +0000 (07:04 +0000)]
Added keyboard output for debugging bug #659

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4875 c70aab31-4412-0410-b14c-859654838e24

8 years agoVitaly Minko to slouken
slouken [Mon, 28 Sep 2009 06:23:22 +0000 (06:23 +0000)]
Vitaly Minko to slouken

Hi all,

I wrote a patch, which allows user to rotate the screen in case of fbcon driver.
The rotation angle is controlled by SDL_VIDEO_FBCON_ROTATION environment variable and possible values are:
not set        - Not rotating, no shadow.
"NONE"    - Not rotating, but still using shadow.
"CW"         - Rotating screen clockwise.
"UD"          - Rotating screen upside down.
"CCW"      - Rotating screen counter clockwise.

The patch is based on wscons driver, written by Staffan Ulfberg.

I tested it on
Device:                Sharp Zaurus SL-C1000
SDL version:       1.2.13
Kernel version:    2.6.24.4

Best regards,
Vitaly.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4874 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #716
slouken [Sun, 27 Sep 2009 23:22:57 +0000 (23:22 +0000)]
Fixed bug #716

 Armin Burgmeier      2009-03-15 04:35:45 PDT

When I hold a mouse button down on another (non-SDL) window, then move the
mouse over an SDL window and releasing the mouse button there, then the
application does not receive an SDL_ACTIVEEVENT with state SDL_APPMOUSEFOCUS
and gain 1.

Furthermore, SDL_GetAppState() reports the application not having mouse focus
until moving the mouse out of the window and back in again.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4872 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #616
slouken [Sun, 27 Sep 2009 22:41:34 +0000 (22:41 +0000)]
Fixed bug #616

 rainer canavan      2009-03-29 12:30:12 PDT

add default visual to this->hidden->visuals

X11_SetIcon appears to have problems getting the correct bpp for the default
visual of my screen. With larger icons, this causes a segfault somewhere in
libX11. Instead of adding the default visual to the internal list, I can work
around this problem (both the segfault and the distortion) by setting bpp to 32
before sicon = SDL_CreateRGBSurface(...) in X11_SetIcon, although with this
patch, it stays at 24.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4871 c70aab31-4412-0410-b14c-859654838e24

8 years agoImproved bug #759
slouken [Sun, 27 Sep 2009 22:29:13 +0000 (22:29 +0000)]
Improved bug #759

Don't crash if creating the X image failed.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4870 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #582
slouken [Sun, 27 Sep 2009 21:44:55 +0000 (21:44 +0000)]
Fixed bug #582

 Tomi Belan      2008-05-03 00:52:32 PDT

If you release a mouse button while an application is minimized, the
application won't notice it and will still report the button is pressed.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4869 c70aab31-4412-0410-b14c-859654838e24

8 years agoBetter fix from Max Horn
slouken [Sun, 27 Sep 2009 19:23:04 +0000 (19:23 +0000)]
Better fix from Max Horn

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4867 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #725
slouken [Sun, 27 Sep 2009 06:20:27 +0000 (06:20 +0000)]
Fixed bug #725

Don't let windows reposition the fullscreen window.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4866 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #713
slouken [Sun, 27 Sep 2009 05:18:43 +0000 (05:18 +0000)]
Fixed bug #713

Don't clamp the mouse coordinates to the video surface size, instead clamp them  to the last known window size.

This allows users to get the correct mouse coordinates even if they don't call SDL_SetVideoMode() in response to an SDL_VIDEORESIZE event (used as a hack to retain the OpenGL context on Windows and Linux after a window resize)

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4865 c70aab31-4412-0410-b14c-859654838e24

8 years agoAdded missing DirectX data
slouken [Sun, 27 Sep 2009 04:49:30 +0000 (04:49 +0000)]
Added missing DirectX data

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4864 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #586
slouken [Sun, 27 Sep 2009 01:31:30 +0000 (01:31 +0000)]
Fixed bug #586

 Vincent Povirk      2009-09-26 16:58:32 PDT

patch for setting the input hint correctly

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4863 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #810
slouken [Sat, 26 Sep 2009 23:17:08 +0000 (23:17 +0000)]
Fixed bug #810

 Lauri Kenttä      2009-09-26 06:42:23 PDT

Support for disabling stdio redirect with environment variables.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4862 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed 32-bit build
slouken [Sat, 26 Sep 2009 21:38:07 +0000 (21:38 +0000)]
Fixed 32-bit build

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4859 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #806
slouken [Sat, 26 Sep 2009 11:42:39 +0000 (11:42 +0000)]
Fixed bug #806

 Max Horn      2009-09-24 13:16:05 PDT

Current SDL 1.2 SVN luckily builds on several systems now: 10.4 (PPC and 32bit intel), 10.5 (32 bit) and 10.6 (32 bit). However, it fails to build on 10.5 in 64 bit mode

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4858 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #797
slouken [Sat, 26 Sep 2009 10:37:28 +0000 (10:37 +0000)]
Fixed bug #797

 Ryan C. Gordon      2009-09-19 08:25:21 PDT

This line in SDL_iconv_string (src/stdlib/SDL_iconv.c) ...

        if (!fromcode || !*fromcode) {
            tocode = "UTF-8";
        }

Is probably supposed to assign to "fromcode" and not "tocode".

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4855 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #734
slouken [Sat, 26 Sep 2009 10:05:07 +0000 (10:05 +0000)]
Fixed bug #734

 Nicholas Phillips      2009-04-26 21:34:05 PDT

I am using x64 Linux (using Intel Core 2 DUO), and I have noticed that there is
an error in SDL_cpuinfo.c, function CPU_getCPUIDFeaturesExt for my platform.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4848 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed crash with right side up BMP files
slouken [Sat, 26 Sep 2009 06:01:27 +0000 (06:01 +0000)]
Fixed crash with right side up BMP files

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4829 c70aab31-4412-0410-b14c-859654838e24

8 years agoEric Wing to Sam
slouken [Wed, 23 Sep 2009 15:40:28 +0000 (15:40 +0000)]
Eric Wing to Sam

This turned out to be a lot of work, but I hope this is the final piece.

Several things:

1) New Xcode template projects. I have separate versions for Tiger, Leopard, and Snow Leopard. The Tiger is pretty much the old one untouched except for SDLMain. I figured I would do more damage than good trying to fix it without working on an actual Tiger system.

The template substitution markers changed I discovered in Xcode/*Leopard, so this required some tedious substitutions after I figured out what was going wrong. (Got help from some Apple folks on this one.)

I added the launch services key to the Info.plist for the Leopard and Snow Leopard templates. Only Snow Leopard really needs them as the Leopard templates can't build 64-bit, but they were similar enough that it was easy to add.

The Snow Leopard templates are set up to build 3-way universal binaries using the 10.6 and 10.4 SDKs just like we build SDL.

2) Had to remove the SDL Custom Cocoa Application template because it used NSQuickDrawView. I don't understand well enough how Darrell designed this to work, so I don't know what needs to be done to do a modern replacement. It might be nice to bring back in the future though if we can get the time/expertise.

3) Deleted the Project Builder stuff

4) I added a new native_only target to the SDL project so people that don't have Snow Leopard/Xcode can build without getting errors about not having the 10.6 SDK, etc.

5) Updated the documentation in several places. The Readme-developer adds more info about installing the Xcode templates and I remove the Project Builder references.

I think I made some brief comments in the main readme.

I top-loaded new information about the 64-bit stuff and mention the 10.4 minimum requirement in the UniversalBinary readme file. I also mention the changes to the SDL satellites as they were also affected by our 64-bit transition.

6) I have run through all the SDLtests on Snow Leopard 64-bit. They all run.
I ran all the templates on Snow Leopard 64-bit and Leopard PowerPC 32-bit.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4820 c70aab31-4412-0410-b14c-859654838e24

8 years agoFixed bug #719
slouken [Wed, 23 Sep 2009 07:18:02 +0000 (07:18 +0000)]
Fixed bug #719

 Mike Blaguszewski      2009-03-23 13:32:22 PDT

Patch to 1.2 HEAD that fixes the issue

Fixes bug in SDL 1.2.13 where clicking on an app's title bar to activate the
app, when cursor capturing is enabled, will cause the window to jump. This is
because SDL's handler for activate events calls a low-level Quartz function to
move the cursor. Calling this when the mouse is down in the title bar confuses
the WindowServer into thinking the title bar has been dragged. The patch defers
processing of activate events in this case.

The bottom line is that CGWarpMouseCursorPosition() is not safe to call when
the mouse in down in a window's title bar.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4819 c70aab31-4412-0410-b14c-859654838e24