Commit Graph

2456 Commits

Author SHA1 Message Date
Ryan C. Gordon
012fc37618 Corrected datatype used for LoadLibrary() return value.
--HG--
branch : SDL-1.2
2011-09-10 19:37:20 -04:00
Ryan C. Gordon
3b10353c7f 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
71b09f10cf 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
4d790c6a1c Remove unused variables
--HG--
branch : SDL-1.2
2011-09-03 09:52:45 +02:00
Ryan C. Gordon
ab75db897d Fixed another Apple typedef in SDL_opengl.h.
--HG--
branch : SDL-1.2
2011-09-02 13:55:31 -04:00
Patrice Mandin
4c1bf583b9 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
c8ac5be7a2 Removed unused variable.
--HG--
branch : SDL-1.2
2011-09-01 04:31:58 -04:00
Ryan C. Gordon
34a8c82346 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
7f5ef116ed video/xbios: remove __attribute__((packed))
--HG--
branch : SDL-1.2
2011-08-31 19:03:02 +02:00
Patrice Mandin
daae314546 audio/mint: remove __attribute__((packed))
--HG--
branch : SDL-1.2
2011-08-30 23:53:53 +02:00
Patrice Mandin
7596089e6c Use proper m68k defines from gcc
--HG--
branch : SDL-1.2
2011-08-28 19:51:27 +02:00
Patrice Mandin
c826ab14ae Remove more values now defined in mintlib
--HG--
branch : SDL-1.2
2011-08-28 19:33:40 +02:00
Patrice Mandin
e811c5f4b1 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
89a16918bb Remove more values now defined in mintlib
--HG--
branch : SDL-1.2
2011-08-28 19:19:03 +02:00
Patrice Mandin
505816c963 Fix more compilation warnings
--HG--
branch : SDL-1.2
2011-08-28 17:20:12 +02:00
Patrice Mandin
d11b29e176 Fix more compilation warnings
--HG--
branch : SDL-1.2
2011-08-28 17:19:32 +02:00
Patrice Mandin
036414b619 Update for latest mintlib, and remove duplicated defines
--HG--
branch : SDL-1.2
2011-08-26 19:56:08 +02:00
Patrice Mandin
a4c42a39b9 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
e7cebcdb3e 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
a4c0223c9e 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
84177ee03d Cleaned up Snow Leopard display mode rework.
--HG--
branch : SDL-1.2
2011-08-23 06:04:54 -04:00
Ryan C. Gordon
0f3a5366d1 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
0862e6401c 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
601ad28efa 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
9b633e09e5 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
a360581a35 Apple uses a void* for GLhandleARB, not an unsigned int.
(transplanted from 68eb59d8baedbcfa99294f833611581860c37258)

--HG--
branch : SDL-1.2
2011-08-04 00:46:27 -04:00
Ryan C. Gordon
c046151e70 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
804f8e784c 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
a5329adc36 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
30bfa18146 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
230a95fb5f 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
4d3dbbc47f 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
2f0b84a7b1 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
2c09586e4a Removed some extra ppc scaffolding
--HG--
branch : SDL-1.2
2011-08-14 17:21:12 -04:00
Sam Lantinga
6e0c7548e9 Fat build doesn't support PPC anymore.
--HG--
branch : SDL-1.2
2011-08-14 17:17:17 -04:00
Patrice Mandin
2d919cc1a2 Fix typo
--HG--
branch : SDL-1.2
2011-08-11 18:50:45 +02:00
Ryan C. Gordon
1da88c2ee0 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
30d7f06bfa 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
9131b285ed 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
d3a5f7af3f Fixed minor typo in a comment.
--HG--
branch : SDL-1.2
2011-07-19 22:10:35 -07:00
Ryan C. Gordon
f14fd4d671 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
0e1946b0ed 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
426198b711 Quartz: locking should only recheck CGDisplayBaseAddress() for HWSURFACEs.
--HG--
branch : SDL-1.2
2011-07-17 01:03:13 -07:00
Patrice Mandin
b92c1e4101 Check sa_sigaction member of struct sigaction
--HG--
branch : SDL-1.2
2011-07-14 15:40:07 +02:00
Ryan C. Gordon
d4bb6faea5 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
36b75c658a Minor whitespace cleanup.
--HG--
branch : SDL-1.2
2011-07-07 11:50:30 -07:00
Ryan C. Gordon
548ff4bc00 Cleaned up compiler warnings about unchecked return values.
--HG--
branch : SDL-1.2
2011-07-07 11:49:46 -07:00
Ryan C. Gordon
10b49960a9 Don't call CGContextRelease() on object Cocoa already flagged for autorelease.
Thanks to Kirk A. Baker for this fix!

--HG--
branch : SDL-1.2
2011-06-04 15:34:32 -04:00
Ryan C. Gordon
bcc468de12 QZ_LockHWSurface() should always check for changes to the screen surface.
Apparently these pointers can change if the user has multiple displays and
 moves a window between them, and probably other similar cases.

Thanks to Kirk Baker for the patch!

--HG--
branch : SDL-1.2
2011-06-04 15:33:50 -04:00
Sam Lantinga
5d83b03124 Fixed compiler warning
--HG--
branch : SDL-1.2
2011-03-21 13:33:29 -07:00