Commit Graph

1022 Commits

Author SHA1 Message Date
Patrice Mandin
b51e2928fa Added preliminary support for MiNT /dev/mouse driver (disabled atm) 2006-02-23 21:51:10 +00:00
Sam Lantinga
5db4718f95 *** empty log message *** 2006-02-23 01:09:47 +00:00
Sam Lantinga
b98ede883c *** empty log message *** 2006-02-22 00:33:10 +00:00
Sam Lantinga
f1ae101efd FIXME:
This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2)
This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac)
2006-02-21 22:12:55 +00:00
Patrice Mandin
666b56a4d3 Fixed include files 2006-02-21 21:45:31 +00:00
Sam Lantinga
28b54b4823 Fixed assembly alignment error on Intel Macs.
Do we really need 16-bit alignment here?
2006-02-21 19:28:45 +00:00
Sam Lantinga
45f86131b7 Fixed build warnings on Intel Mac 2006-02-21 19:24:09 +00:00
Sam Lantinga
538f9ed207 Fixed some preprocessor mangling 2006-02-21 18:29:39 +00:00
Sam Lantinga
3e17e7ac74 Whoops, forgot to check in this fix 2006-02-21 18:20:10 +00:00
Sam Lantinga
0230236dd4 *** empty log message *** 2006-02-21 09:14:58 +00:00
Sam Lantinga
61ae237dcb Catch the C++ and Objective C sources too... 2006-02-21 08:47:46 +00:00
Sam Lantinga
190b425364 Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Sam Lantinga
36d9314efa Date: Mon, 20 Feb 2006 19:54:51 -0500
From: Brian Barnes
Subject: [SDL] Fix for FSAA OS X bug -- Please fix in CVS Code

I stopped complaining and went in an fixed the bug myself :)  SDL
always dies if you try to use FSAA on Mac OS X, the problem is in the
file:

SDL_QuartzGL.m
2006-02-21 02:42:05 +00:00
Patrice Mandin
13fff1e268 Add missing include directories 2006-02-20 20:53:52 +00:00
Patrice Mandin
83912dacef Hum badly edited source 2006-02-20 20:53:01 +00:00
Sam Lantinga
d55a5615b1 Fixed defaults for 8 bpp visuals 2006-02-20 10:18:08 +00:00
Sam Lantinga
055b401cac build fixes for IRIX 6.5 - dynamic X11 loading works! :) 2006-02-20 08:49:00 +00:00
Sam Lantinga
35a29575fc NetBSD support 2006-02-20 03:57:03 +00:00
Sam Lantinga
0ef73d9eae Use only safe string functions 2006-02-19 23:46:34 +00:00
Sam Lantinga
b56a6d0212 *** empty log message *** 2006-02-19 23:38:57 +00:00
Sam Lantinga
be4ab70dbf sprintf should have been snprintf 2006-02-19 18:46:58 +00:00
Sam Lantinga
278934ee01 *** empty log message *** 2006-02-19 16:42:18 +00:00
Sam Lantinga
49255e3fa6 Fixes for BeOS and Solaris builds 2006-02-17 08:43:23 +00:00
Sam Lantinga
f05187e232 New configure-based build system. Still work in progress, but much improved 2006-02-16 10:11:48 +00:00
Sam Lantinga
bcdfa07625 *** empty log message *** 2006-02-10 07:03:22 +00:00
Sam Lantinga
769424426d More header massaging... works great on Windows. ;-) 2006-02-10 06:48:43 +00:00
Sam Lantinga
20c4849e7e Fixed build problem with SDL_string.c
Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h
Moved endian-related SDL_rwops code into SDL_rwops.c
2006-02-09 09:38:05 +00:00
Ryan C. Gordon
890fc9e8b0 Changed X11 header order so it works on Solaris.
Fixes Bugzilla #138.

--ryan.
2006-02-08 20:29:12 +00:00
Patrice Mandin
c309a78b29 Fixes for new SDL embedded libc stuff 2006-02-08 18:59:49 +00:00
Sam Lantinga
4fc41406a8 Date: Mon, 6 Feb 2006 11:41:04 -0500
From: "mystml@adinet.com.uy"
Subject: [SDL] ALT-F4 using DirectX

My game isn't getting SDL_QUIT when I press ALT-F4 using the DirectX
driver; it does get SDL_QUIT when I press the red X in the window.

I tracked this down to DX5_HandleMessage() in SDL_dx5events.c;
WM_SYSKEYDOWN is being trapped and ignored which causes Windows not to post
a WM_CLOSE, hence no SDL_QUIT is being generated.

The relevant code is this :

                /* The keyboard is handled via DirectInput */
                case WM_SYSKEYUP:
                case WM_SYSKEYDOWN:
                case WM_KEYUP:
                case WM_KEYDOWN: {
                        /* Ignore windows keyboard messages */;
                }
                return(0);

If I comment the WM_SYSKEYDOWN case, it falls through DefWindowProc() and
ALT-F4 starts working again.

I'm not sure about the best way to fix this. One option is handling ALT-F4
as a particular case somehow, but doesn't sound good. Another option would
be to handle WM_SYSKEYDOWN separately and breaking instead of returning 0,
so processing falls through and goes to DefWindowProc which does The Right
Thing (TM). This seems to be the minimal change that makes ALT-F4 work and
normal keyboard input continues to work.

Does this sound reasonable? Am I overlooking anything? Do I submit a patch?

--Gabriel
2006-02-08 17:19:43 +00:00
Sam Lantinga
05f9cca4a3 Default to build SDL without MSVCRT 2006-02-08 08:55:33 +00:00
Sam Lantinga
b0e5472b68 Fixes for Visual C++ 6.0 2006-02-07 18:36:54 +00:00
Sam Lantinga
2bbcb7bdd0 G:\SDL-12-CVS\src\video\math_private.h(171) : error C4226:
nonstandard extension used : 'huge' is an obsolete keyword
2006-02-07 17:49:40 +00:00
Sam Lantinga
e28c454fca *** empty log message *** 2006-02-07 17:46:19 +00:00
Sam Lantinga
835cdcb355 Fixed it Hayashi Naoyuki's way. :) 2006-02-07 12:15:46 +00:00
Sam Lantinga
d72a9898ed Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
2006-02-07 12:11:33 +00:00
Ryan C. Gordon
5ff3069784 Faster fades when changing to/from/between fullscreen modes on Mac OS X. Also,
it doesn't show the desktop between modes anymore.

 Fixes Bugzilla #100.

--ryan.
2006-02-07 11:18:21 +00:00
Sam Lantinga
bd5cd274af *** empty log message *** 2006-02-07 10:40:14 +00:00
Sam Lantinga
1e037cc218 Removed uses of stdlib.h and string.h 2006-02-07 09:29:18 +00:00
Sam Lantinga
c7319385b8 Don't touch code that we brought in from other sources 2006-02-07 07:03:29 +00:00
Sam Lantinga
02cc6c0f11 Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
2006-02-07 06:59:48 +00:00
Sam Lantinga
735e84a7f0 Proper credit to uClibc :) 2006-02-06 17:26:47 +00:00
Sam Lantinga
dc67631a8a *** empty log message *** 2006-02-06 08:58:44 +00:00
Sam Lantinga
f62242e296 A few fixes to get this building on Linux again 2006-02-06 08:46:14 +00:00
Sam Lantinga
82bfaee73a It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
2006-02-06 08:28:51 +00:00
Sam Lantinga
e2f752249e Seek back to start on error 2006-02-04 22:01:44 +00:00
Sam Lantinga
76646e9ef3 Date: Sat, 04 Feb 2006 19:47:23 +0900
From: Hayashi Naoyuki
Subject: Re: [SDL] Character Composition problem on X

The compilation fails.
cc: Error: SDL_x11events.c, line 717: In this statement, "XK_dead_hook"
is not declared. (undeclared)
        ODD_keymap[XK_dead_hook&0xFF] = SDLK_COMPOSE;
-------------------^
cc: Error: SDL_x11events.c, line 718: In this statement, "XK_dead_horn"
is not declared. (undeclared)
        ODD_keymap[XK_dead_horn&0xFF] = SDLK_COMPOSE;

Neither XK_dead_hook nor XK_dead_horn are defined on Tru64.
2006-02-04 16:29:22 +00:00
Sam Lantinga
467be8347d Resolved bug #130
Use XFilterEvent() to handle dead-key composition under X11
Cleaned up the code in preparation for 1.3 API changes
2006-02-04 08:35:11 +00:00
Sam Lantinga
dbfa71e7a3 From: Hayashi Naoyuki
I tried to compile with gcc on Tru64, and got the following error.
SDL_systimer.c:45:45: error: operator '&&' has no right operand

It succeeds if changing
#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
to
#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
2006-02-03 07:43:42 +00:00
Sam Lantinga
3c351ccd46 Resolve bug #120
Use the real executable's name for the window class, if it's available.
2006-02-03 07:39:02 +00:00