Commit Graph

2070 Commits

Author SHA1 Message Date
Sam Lantinga
8b3c845e2c Fixed fatbuild.sh script for building on Mac OS X 10.5
The minimum PPC SDK is 10.3.9

--HG--
branch : SDL-1.2
2007-12-28 20:39:31 +00:00
Sam Lantinga
5b100cbad4 Date: Wed, 14 Nov 2007 22:20:27 -0500
From: Calvin Vette
Subject: Fix to compile SDL-1.2 SVN on OS X Leopard

I found I needed to add a conditional check for Leopard to compile
cleanly on 1.2-SVN (20071114):

#include <AudioUnit/AudioUnit.h>
#ifdef AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER
#include <AudioUnit/AUNTComponent.h>
#endif

where there is now just:
#include <AudioUnit/AudioUnit.h>

--HG--
branch : SDL-1.2
2007-12-28 18:15:43 +00:00
Sam Lantinga
76f6c7192f Date: Thu, 15 Nov 2007 10:33:01 +0100
From: "Marco Lopes"
Subject: Compiling with Intel compiler fails

I~Rve recently bought the Intel Compiler 10 for another project and decided
to compile SDL with it as well.

I was very surprised when it failed to compile because of the function:

Error      5              error: label "endS16" was referenced but not
defined   ..\..\src\audio\SDL_mixer_MMX_VC.c

--HG--
branch : SDL-1.2
2007-12-28 18:07:59 +00:00
Sam Lantinga
9d3412b382 Oskar Linde fixed bug #507
Trackpad scrolling on OSX is broken. Scrolling up/slightly right gets
translated into a Down event in SDL. The following patch fixes this extremely
irritating issue:

--HG--
branch : SDL-1.2
2007-12-28 08:11:26 +00:00
Sam Lantinga
88294ae6a7 Stephen Hurd fixed bug #505
Borland compilers have the alloca() prototype in malloc.h as with WATCOM.

--HG--
branch : SDL-1.2
2007-12-28 08:06:36 +00:00
Sam Lantinga
00610f157f Brian Fisher fixed bug #513
If an app requests a 24-bit opengl mode on a machine with a 32-bit desktop with
the windib video backend, then when exiting fullscreen the desktop resolution
is not restored

The reason this is, is because the windib backend restores the desktop
resolution when exiting fullscreen in DIB_SetVideoMode when it finds that the
last request was for fullscreen by checking the original flags on the video
surface. However, if the bits per pixel requested is different than current
surface, the video surface is recreated and the original video flags are lost.
So the check to see if we were exiting fullscreen fails.

below is a patch to SDL_dibvideo.c that solves the problem by using the
original flags in all cases.

thanks!

--HG--
branch : SDL-1.2
2007-12-28 08:00:30 +00:00
Sam Lantinga
c686df2180 Fixed typo in docs, fixing bug #520
--HG--
branch : SDL-1.2
2007-12-28 07:52:19 +00:00
Sam Lantinga
4884098ba4 Removed stray C++ comment
--HG--
branch : SDL-1.2
2007-12-28 07:50:01 +00:00
Sam Lantinga
636bd6ff76 Fixed crash when given video modes > 32 bpp
--HG--
branch : SDL-1.2
2007-12-27 13:59:41 +00:00
Ryan C. Gordon
98e1fb5a80 Date: Mon, 24 Sep 2007 17:54:58 +0200
From: Christopher GAUTIER <krys via.ecp.fr>
To: sdl@lists.libsdl.org
Subject: [SDL] SDL_INPUT_LINUXEV vs SDL_JOYSTICK_LINUXEVHello all,

There seems to be a slight inconsistency between the SDL_INPUT_LINUXEV
define (used in src/joystick/linux/), and SDL_JOYSTICK_LINUXEV defined
in include/SDL_config.h.

SDL_JOYSTICK_LINUXEV is never used, and SDL_INPUT_LINUXEV is not
mentioned in SDL_config.h.in (though set by the ./configure script).
This has the unfortunate effect of breaking the joystick detection on linux
boxes where /dev/input/event* is defined, but not /dev/(input/)?js*.

Trivial patch included.

Cheers.

--HG--
branch : SDL-1.2
2007-09-25 09:59:26 +00:00
Ryan C. Gordon
a2d05ea5dd ANSI C fix (all variables need to be defined at start of block).
Fixes Bugzilla #487.

--HG--
branch : SDL-1.2
2007-09-01 17:25:24 +00:00
Sam Lantinga
9030ffc5d4 Fixed bugs #471 and #480
--HG--
branch : SDL-1.2
2007-08-21 06:52:33 +00:00
Ryan C. Gordon
d5084855e5 Set an error message when SDL_GL_SetAttribute() fails because we can't support
the attribute on X11.

--HG--
branch : SDL-1.2
2007-08-06 18:36:46 +00:00
Ryan C. Gordon
9fb3f4de89 Removed some C++ style comments from the public headers.
Fixes Bugzilla #474.

--HG--
branch : SDL-1.2
2007-08-05 03:21:18 +00:00
Sam Lantinga
6b93aa7b97 Fixed bug #458
------- Comment #7 From Christian Walther 2007-07-23 01:10:30 [reply] -------
Fix for some Cocoa memory management problems.

OK, I think I've nailed the memory management problems with the attached patch.
Too late for the release, but oh well. It shows that I haven't done much Cocoa
lately... took me a while to figure out that NSWindows don't retain their
delegate.

--HG--
branch : SDL-1.2
2007-07-24 04:21:05 +00:00
Sam Lantinga
629240bd8e Switched afxres.h to winresrc.h
--HG--
branch : SDL-1.2
2007-07-23 18:36:58 +00:00
Sam Lantinga
54c57a6e47 Fixed window titles on Windows 95/98/ME
--HG--
branch : SDL-1.2
2007-07-23 01:19:56 +00:00
Sam Lantinga
38d037c3a9 I'm not sure if this helps anything, but it was clearly wrong.
--HG--
branch : SDL-1.2
release-1.2.12
2007-07-20 08:17:45 +00:00
Sam Lantinga
57c3c8e959 Merged window position fix from windib code
--HG--
branch : SDL-1.2
2007-07-20 03:30:41 +00:00
Sam Lantinga
9f2bd9da0f > Hi Ryan,
> I checked the list you linked to, but did not see any reference to whether
> the Win32 window centering bug was fixed... Has that been addressed at all?

> I refer to the bug where, unless one has globally set the
> SDL_WINDOW_CENTERED variable in the OS, only the 1st window that is created

> will be centered. Subsequent calls to SetVideoMode will create a window tha
t
> shares the same upper-left corner location.

I'm working on that now, thanks for reporting it.  What I'm doing is if the
width and height are the same, I'm leaving the window position alone, but if
they're different they will respect the positioning environment variables.

--HG--
branch : SDL-1.2
2007-07-20 03:25:40 +00:00
Sam Lantinga
57b5e688eb Fixed warnings in NO_STDIO mode
--HG--
branch : SDL-1.2
2007-07-20 02:58:28 +00:00
Sam Lantinga
d05d4532f7 Added patch note for bug #461
--HG--
branch : SDL-1.2
2007-07-19 08:12:45 +00:00
Sam Lantinga
b1f660ba94 Fixed bug #461
Fixed a couple of bugs in the OpenGL window reset.

--HG--
branch : SDL-1.2
2007-07-19 08:08:16 +00:00
Sam Lantinga
30b1504e45 Updating copyright date for Version.rc
--HG--
branch : SDL-1.2
2007-07-18 04:07:46 +00:00
Sam Lantinga
827825956a Better windres detection
--HG--
branch : SDL-1.2
2007-07-18 04:04:24 +00:00
Sam Lantinga
5eee2f939e Always advertise hardware palette, since Windows will remap colors for us.
We do grab the system colors if the application requested fullscreen or a
real hardware palette.

This allows gamma fading, etc. to work, and is what previous versions did.

--HG--
branch : SDL-1.2
2007-07-16 05:08:20 +00:00
Sam Lantinga
54cb90b38f Added support for building version.rc in Windows build.
--HG--
branch : SDL-1.2
2007-07-16 03:27:26 +00:00
Sam Lantinga
d2f64a14b9 Fixed bug #428
This fix is overkill, but approved by Doug Lea, and he'll be releasing a
new version of his malloc.c sometime next month.

--HG--
branch : SDL-1.2
2007-07-16 00:07:02 +00:00
Sam Lantinga
b3ed797912 Fixed bug #457
Don't crash if passed a NULL overlay.  The app crashes anyway, since
it's not checking the return value of the create call, but at least it's
not crashing in SDL anymore. :)

--HG--
branch : SDL-1.2
2007-07-15 21:50:07 +00:00
Sam Lantinga
85e0b92fab Fixed building on Windows CE
--HG--
branch : SDL-1.2
2007-07-15 19:43:54 +00:00
Sam Lantinga
f7a0de097b Added a patch note for the Mac OS X cursor bug
--HG--
branch : SDL-1.2
2007-07-15 19:00:22 +00:00
Ryan C. Gordon
d250d19e79 Merged r3295:3296 from trunk/SDL: testjoystick reusing "joystick" variable.
--HG--
branch : SDL-1.2
2007-07-15 17:26:50 +00:00
Sam Lantinga
c6d395951a Final fix for bug #373
------- Comment #13 From Christian Walther 2007-07-15 10:04:56 [reply] -------
Created an attachment (id=229) [details]
patch to reinstate the SDL cursor after an NSApplicationActivatedEvent

Oops, you're right. My testcursor.c has diverged so far from the original that
I missed that. In fact, now that I think about it, that issue isn't even
addressed by the cursor rectangle patch - it is only concerned with windowed
mode (and fixes the problem there as a side effect). The problem in fullscreen
is still the same as before. How about the attachment for a fix? (I can confirm
that [NSCursor set] doesn't seem to have any effect when called from
QZ_DoActivate().)

--HG--
branch : SDL-1.2
2007-07-15 17:22:39 +00:00
Ryan C. Gordon
b40c30723f Dump more information about each joystick in testjoytick.c
--HG--
branch : SDL-1.2
2007-07-15 16:33:45 +00:00
Sam Lantinga
9dddc84312 Patch from Christian Walther
Yes, the idea to use a cursor rectangle instead of [NSCursor set] has occurred
to me too, and it does seem to be the most elegant way. Here's my attempt at an
implementation

--HG--
branch : SDL-1.2
2007-07-15 15:58:00 +00:00
Ryan C. Gordon
7fd3fd7c35 An attempt at fixing Bugzilla #454.
--HG--
branch : SDL-1.2
2007-07-15 14:14:45 +00:00
Sam Lantinga
d6deb7f664 I think this fixes bug #454
--HG--
branch : SDL-1.2
2007-07-15 14:05:31 +00:00
Sam Lantinga
8eed2f44ff Use SDL C functions (fixes security warnings on OpenBSD)
--HG--
branch : SDL-1.2
2007-07-14 21:09:54 +00:00
Sam Lantinga
31affb7a1a More improvements for bug #373
Show the SDL cursor in the window and the arrow cursor outside the window.

This is also supposed to show the SDL cursor when activated, but that code
isn't working yet...

--HG--
branch : SDL-1.2
2007-07-14 08:27:06 +00:00
Sam Lantinga
2d7abdd8b5 Fixed bug #373
Patch contributed from Transgaming's Cider project
- create a window and view in fullscreen mode so the cursor can be set

--HG--
branch : SDL-1.2
2007-07-14 08:00:50 +00:00
Ryan C. Gordon
fb21ae9a31 Mac OS X/x86 won't build the MMX/YUV inline assembly without optimizations
enabled (not enough registers), so for now, we only build it if we see
 the __OPTIMIZE__ #define, which GCC provides when you build at -O1 or higher.

--HG--
branch : SDL-1.2
2007-07-14 07:26:34 +00:00
Ryan C. Gordon
6d23d090bb Reverted r3255:3256. Don't actually need it unless the build is broken. :)
--HG--
branch : SDL-1.2
2007-07-14 07:06:46 +00:00
Ryan C. Gordon
9d4121fcce Removed some unused static variables.
--HG--
branch : SDL-1.2
2007-07-14 07:01:38 +00:00
Ryan C. Gordon
2cb1d6e0b8 Mac OS X thinks we want a function call to SDL_memcpy() and not memcpy() here,
thanks to macro replacement issues.

--HG--
branch : SDL-1.2
2007-07-14 06:45:01 +00:00
Patrice Mandin
49202d7dda Call GEM_CheckMouseMode everytime something may change mouse form, and do it properly
--HG--
branch : SDL-1.2
2007-07-13 18:44:43 +00:00
Patrice Mandin
dd14735a89 Simplify setting window title
--HG--
branch : SDL-1.2
2007-07-13 16:09:16 +00:00
Sam Lantinga
46294bb92c Update default cross-compile install prefix for the latest mingw toolchain
--HG--
branch : SDL-1.2
2007-07-13 03:57:40 +00:00
Patrice Mandin
5549815a79 Formatting with tabs
--HG--
branch : SDL-1.2
2007-07-12 19:00:08 +00:00
Sam Lantinga
768896d21c A better fix for building DGA code on Solaris 8, inspired by the NetBSD pkgsrc patch.
--HG--
branch : SDL-1.2
2007-07-12 08:05:19 +00:00
Sam Lantinga
b8389ee714 Ryan's fix is still good for the built-in version of iconv_open()
--HG--
branch : SDL-1.2
2007-07-12 08:04:10 +00:00