Commit graph

2459 commits

Author SHA1 Message Date
Ryan C. Gordon
a4163fc517 Fixed another nasm warning, this one looking quite serious.
--HG--
branch : SDL-1.2
2011-09-11 00:40:21 -04:00
Ryan C. Gordon
a10e0765f5 Fixed build warnings from nasm on some Hermes blitters.
--HG--
branch : SDL-1.2
2011-09-11 00:33:18 -04:00
Ryan C. Gordon
4bcf292153 Disabled MMX blitters on GCC. They break the build on tons of machines now.
--HG--
branch : SDL-1.2
2011-09-10 23:21:19 -04:00
Ryan C. Gordon
f410d765ce Corrected datatype used for LoadLibrary() return value.
--HG--
branch : SDL-1.2
2011-09-10 19:37:20 -04:00
Ryan C. Gordon
0be25621f8 Removed WIN_GetKeyboardState().
It causes problems on modern Windows, when a player ALT-Tab's out of a window.
When they ALT-Tab back, the keystate gets confused.

Fixes Bugzilla #659.

--HG--
branch : SDL-1.2
2011-09-09 00:48:53 -04:00
Sam Lantinga
eec77cc7f8 Fixed bug 1278.
From http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50111:
Andrew Pinski 2011-08-18 02:25:15 UTC
I really doubt this is a bug in GCC but rather SDL's inline-asm.

 "=X" (mmx_trace)

'X'
    Any operand whatsoever is allowed.

They most likely want:
y
    Any MMX register.

--HG--
branch : SDL-1.2
2011-09-06 22:45:58 -04:00
Patrice Mandin
1e0afdb9d3 Remove unused variables
--HG--
branch : SDL-1.2
2011-09-03 09:52:45 +02:00
Ryan C. Gordon
a5f570809b Fixed another Apple typedef in SDL_opengl.h.
--HG--
branch : SDL-1.2
extra : rebase_source : f97ca41fd46383684a26045b2e846b19e58bc4d5
2011-09-02 13:55:31 -04:00
Patrice Mandin
1a03229427 audio/mint/dma8: Use XBIOS Supexec instead of GEMDOS Super
--HG--
branch : SDL-1.2
2011-09-01 23:52:09 +02:00
Ryan C. Gordon
c40fcebcb9 Removed unused variable.
--HG--
branch : SDL-1.2
2011-09-01 04:31:58 -04:00
Ryan C. Gordon
930edf8186 Backport from 1.3 branch: clean up opened joysticks in SDL_JoystickQuit().
--HG--
branch : SDL-1.2
2011-09-01 04:31:01 -04:00
Patrice Mandin
e22549a332 video/xbios: remove __attribute__((packed))
--HG--
branch : SDL-1.2
2011-08-31 19:03:02 +02:00
Patrice Mandin
be690c9339 audio/mint: remove __attribute__((packed))
--HG--
branch : SDL-1.2
2011-08-30 23:53:53 +02:00
Patrice Mandin
cb32c5aed4 Use proper m68k defines from gcc
--HG--
branch : SDL-1.2
2011-08-28 19:51:27 +02:00
Patrice Mandin
129a38c101 Remove more values now defined in mintlib
--HG--
branch : SDL-1.2
2011-08-28 19:33:40 +02:00
Patrice Mandin
0469b458b3 Remove more values now defined in mintlibsrc/video/xbios/SDL_xbios_centscreen.h
--HG--
branch : SDL-1.2
2011-08-28 19:28:24 +02:00
Patrice Mandin
c1d819834c Remove more values now defined in mintlib
--HG--
branch : SDL-1.2
2011-08-28 19:19:03 +02:00
Patrice Mandin
d071046738 Fix more compilation warnings
--HG--
branch : SDL-1.2
2011-08-28 17:20:12 +02:00
Patrice Mandin
1ccbb03751 Fix more compilation warnings
--HG--
branch : SDL-1.2
2011-08-28 17:19:32 +02:00
Patrice Mandin
990293f9ed Update for latest mintlib, and remove duplicated defines
--HG--
branch : SDL-1.2
2011-08-26 19:56:08 +02:00
Patrice Mandin
138ae31eb6 Fix various warnings for uninitialized or unused variables and functions
--HG--
branch : SDL-1.2
2011-08-26 14:37:39 +02:00
Ryan C. Gordon
44262cd9eb Fixed the Apple SDL_opengl.h conflict in the 1.2 branch.
--HG--
branch : SDL-1.2
2011-08-26 03:39:54 -04:00
Ryan C. Gordon
140a554418 Remove use of MAC_OS_X_VERSION_10_x macro.
If you look for MAC_OS_X_VERSION_10_6 in the 10.4 SDK (for example), it'll
 fail to do the right thing in the preprocessor.

--HG--
branch : SDL-1.2
2011-08-25 03:04:24 -04:00
Ryan C. Gordon
64d53119bf Cleaned up Snow Leopard display mode rework.
--HG--
branch : SDL-1.2
2011-08-23 06:04:54 -04:00
Ryan C. Gordon
38d687d1e7 Fixed some printf() compiler warnings in test/testplatform.c
--HG--
branch : SDL-1.2
2011-08-23 02:57:36 -04:00
Ryan C. Gordon
ae64fc82ae Added GLX_EXT_swap_control support for 1.2 x11 video target.
--HG--
branch : SDL-1.2
2011-08-22 02:11:56 -04:00
Ryan C. Gordon
1322d06516 Cleaned out all the deprecated stuff in Mac OS X 10.6 SDK.
--HG--
branch : SDL-1.2
2011-08-21 23:38:35 -04:00
Ryan C. Gordon
44d762fc92 Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).
--HG--
branch : SDL-1.2
2011-08-21 21:29:12 -04:00
Ryan C. Gordon
f5b4f003f4 Apple uses a void* for GLhandleARB, not an unsigned int.
(transplanted from 68eb59d8baedbcfa99294f833611581860c37258)

--HG--
branch : SDL-1.2
extra : transplant_source : h%EBY%D8%BA%ED%BC%FA%99%29O%836%11X%18%60%C3rX
2011-08-04 00:46:27 -04:00
Ryan C. Gordon
cacb18997b Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch.
Fixes Bugzilla #1254.

Thanks to Thilo Schulz for the patch!

--HG--
branch : SDL-1.2
2011-08-21 12:21:01 -04:00
Ryan C. Gordon
e560642e7a Set a minimum sample count in ALSA target.
This should reduce unnecessary hardware interrupts. Apparently improves the
 ALSA target on some systems.

Fixes Bugzilla #1170.

Thanks to Paul Cercueil for the patch!

--HG--
branch : SDL-1.2
2011-08-21 11:42:47 -04:00
Ryan C. Gordon
0881f2aa01 Ignore old ConfigureNotify events during X11 window resize.
Fixes Bugzilla #1049.

Thanks to Andrew Church for the patch!

--HG--
branch : SDL-1.2
2011-08-21 11:27:37 -04:00
Ryan C. Gordon
07422a4c00 Don't allocate a new NSGraphicsContext on every call to QZ_UpdateRects().
--HG--
branch : SDL-1.2
2011-08-21 10:10:42 -04:00
Ryan C. Gordon
44cfc135b6 Remove src/joystick/darwin/10.3.9-FIX dir.
The license on IOHIDLib.h says we have to distribute a copy of the APSL with
every copy of SDL, and include a "prominent notice" in the documentation, and
that's annoying for something that's only there because Apple forgot to copy
a file in an ancient SDK.

--HG--
branch : SDL-1.2
2011-08-21 09:47:43 -04:00
Ryan C. Gordon
fcf143d294 Optionally don't clear the fbcon framebuffer on shutdown.
The new behavior is triggered by setting the environment variable
SDL_FBCON_DONT_CLEAR.

This is useful in certain circumstances (specifically: a game launcher on an
embedded device can leave a "now loading!" screen on the framebuffer while
another process is starting up).

Fixes Bugzilla #1251.

Thanks to Paul Cercueil for the patch!

--HG--
branch : SDL-1.2
2011-08-21 09:26:56 -04:00
Ryan C. Gordon
59a7f8a598 Don't force nasm to use a.out on OpenBSD. They've been on ELF for a long time.
Fixes Bugzilla #538.

Thanks to Brad Smith for the patch!

--HG--
branch : SDL-1.2
2011-08-21 02:52:15 -04:00
Sam Lantinga
c3c3d4dcb8 Removed some extra ppc scaffolding
--HG--
branch : SDL-1.2
2011-08-14 17:21:12 -04:00
Sam Lantinga
3b5adfdca1 Fat build doesn't support PPC anymore.
--HG--
branch : SDL-1.2
2011-08-14 17:17:17 -04:00
Patrice Mandin
499690cc0f Fix typo
--HG--
branch : SDL-1.2
2011-08-11 18:50:45 +02:00
Ryan C. Gordon
b80d660a1d Fixed SDL 1.2 fullscreen OpenGL on Mac OS X 10.7.
I'm not sure if there was a way to make CGLSetFullScreen() work, but the
Cocoa path works fine on all Intel Macs.

Please note that the "official" way to do fullscreen in 10.7 is just to make
a window the size of the display mode, and OS X is now smart enough to
recognize this as "fullscreen", but this helps earlier versions of the OS in
any case.

--HG--
branch : SDL-1.2
2011-08-10 01:25:00 -04:00
Ryan C. Gordon
3ac8cc3067 Fixes for OpenGL on Haiku.
testgl now passes when this patch is used.

This patch was originally from Urias McCullough (umccullough).

--HG--
branch : SDL-1.2
2011-08-04 01:44:32 -04:00
Ryan C. Gordon
d4cd5bc4ca Need to add this line for sa_sigaction check in configure to work.
--HG--
branch : SDL-1.2
2011-07-20 16:35:04 -07:00
Ryan C. Gordon
1f822b71a7 Fixed minor typo in a comment.
--HG--
branch : SDL-1.2
extra : rebase_source : 6ce52e4aa61fd862b0af75a6b22424a8e7ea5648
2011-07-19 22:10:35 -07:00
Ryan C. Gordon
e45148e454 Quartz: Don't use -[NSWindow center] on the fullscreen window.
"Centering" is a little off-center, vertically. Apparently in non-fullscreen
 apps, this is more aestetically pleasing or something.

Fixes positioning on fullscreen video modes on Mac OS X.

--HG--
branch : SDL-1.2
2011-07-18 20:32:40 -07:00
Ryan C. Gordon
e28404e104 Quartz: Ripped out all the legacy CoreGraphics code.
Mac OS X Lion (10.7) always returns NULL from CGDisplayBaseAddress(), so all
 the direct framebuffer access code has been replaced with something a little
 higher level. This also necessitated taking out the scary SDL_DOUBLEBUF
 codepath that was trying to time out vsync by hand.  :)

--HG--
branch : SDL-1.2
2011-07-17 03:08:53 -07:00
Ryan C. Gordon
fe0bd83030 Quartz: locking should only recheck CGDisplayBaseAddress() for HWSURFACEs.
--HG--
branch : SDL-1.2
2011-07-17 01:03:13 -07:00
Patrice Mandin
619e6fbf06 Check sa_sigaction member of struct sigaction
--HG--
branch : SDL-1.2
2011-07-14 15:40:07 +02:00
Ryan C. Gordon
e296b4d8ec Linux: Search a smaller set of potential joystick axes.
Newer kernels seem to report bogus axes in the higher ranges, for example
 with a standard PlayStation 3 controller plugged in via USB.

--HG--
branch : SDL-1.2
2011-07-13 17:36:29 -07:00
Ryan C. Gordon
2468efa6b8 Minor whitespace cleanup.
--HG--
branch : SDL-1.2
2011-07-07 11:50:30 -07:00
Ryan C. Gordon
0a9f2c2df9 Cleaned up compiler warnings about unchecked return values.
--HG--
branch : SDL-1.2
2011-07-07 11:49:46 -07:00