Commit Graph

1042 Commits

Author SHA1 Message Date
Sam Lantinga
4a943f375d SetClassLongPtr isn't available in MinGW yet 2006-03-01 09:56:51 +00:00
Sam Lantinga
62c5e3a5d5 Fixed a bunch of 64-bit compatibility problems 2006-03-01 09:43:47 +00:00
Sam Lantinga
e7a0eb32bc Hah, standard stdio code crashed on the test case. 2006-02-27 22:14:40 +00:00
Sam Lantinga
ec7cfdfea1 Date: Mon, 27 Feb 2006 17:01:43 +0100
From: "William Petiot [exoide]"
Subject: Re: [SDL] cvs version: standard win32 SDL.DLL file test [patch]

I found a bug or two in previous patch, so here is a patch to correct this.
2006-02-27 19:19:22 +00:00
Sam Lantinga
9850649e32 Removing unused Makefile.am files 2006-02-27 15:51:34 +00:00
Sam Lantinga
3d7fe80708 Prefer the raw Win32 API over stdio for file RWops 2006-02-27 04:16:44 +00:00
Sam Lantinga
a85789aa95 Date: Mon, 27 Feb 2006 02:17:29 +0100
From: "William Petiot [exoide]"
Subject: Re: [SDL] cvs version: questions regarding HAVE_STDIO_H in standard w

I managed to get a first implementation of it, which I tested for "simple" use
with tests sample apps, they work ok. I think this needs more tests.

Here is the diff against CVS/SDL12, attached.
2006-02-27 03:48:48 +00:00
Sam Lantinga
d18315441e Oops, missed the header 2006-02-26 19:46:17 +00:00
Sam Lantinga
cdf944a643 Fixed some OpenWatcom warnings 2006-02-26 19:37:40 +00:00
Sam Lantinga
aaf71291d0 Updated OS/2 build, yay! 2006-02-26 19:30:21 +00:00
Sam Lantinga
e2c692b018 Date: Sun, 26 Feb 2006 11:25:09 +0900
From: Hayashi Naoyuki
Subject: Re: [SDL] CVS stable again, please update SDL ports

Some problems are caused on Tru64 UNIX.
If applying SDL12-osf1.path, these problems are fixed.


1. configure-script say "recursive mutexes... no" and "pthread
semaphores... no".
checking for pthreads... yes
checking for recursive mutexes... no
checking for pthread semaphores... no

This is because it compiled without pthread_cflags and pthread_lib when
checking recursive mutexes and pthread semaphores.


2. Compiling src/audio/mme/SDL_mmeaudio.c fails.
cc: Severe: ./src/audio/mme/SDL_mmeaudio.c, line 25: Cannot find file
<mme_api.h> specified in #include directive. (noinclfilef)
#include <mme_api.h>
-^

This is because BUILD_CFLAGS is wrong.


3. Compiling src/cdrom/osf/SDL_syscdrom.c fails.
cc: Warning: ./src/cdrom/osf/SDL_syscdrom.c, line 176: Too few actual
parameters in the invocation of the macro "SDL_stack_alloc". (toofewactuals)
        cdpath = SDL_stack_alloc(len);
------------------------------------^
cc: Error: ./src/cdrom/osf/SDL_syscdrom.c, line 176: Invalid expression.
(badexpr)
        cdpath = SDL_stack_alloc(len);
-----------------^

SDL_stack_alloc is defined in include/SDL_stdinc.h.
#define SDL_stack_alloc(type, count)    (type*)alloca(sizeof(type)*count)


4. Linking fails if running configure with --enable-x11-shared=yes.
/usr/ccs/bin/ld:
Warning: Unresolved:
p_XData32


5. Compiling src/video/x11/SDL_x11dyn.c fails if running configure with
--enable-x11-shared=no.
cc: Error: ./src/video/x11/SDL_x11sym.h, line 149: In this statement,
"_SmtBufferOverflow" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtBufferOverflow,(Display *dpy,register smtDisplayPtr))
^
cc: Error: ./src/video/x11/SDL_x11sym.h, line 150: In this statement,
"_SmtBufferOverflow" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtBufferOverflow,(Display *dpy,register smtDisplayPtr))
^
cc: Error: ./src/video/x11/SDL_x11sym.h, line 150: In this statement,
"_SmtIpError" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtIpError,(Display *dpy,register smtDisplayPtr, int))
^
2006-02-26 04:54:01 +00:00
Sam Lantinga
7dd50dfdc9 Make sure the OpenGL library is loaded before setting up OpenGL 2006-02-26 04:48:24 +00:00
Sam Lantinga
2861771aa5 SDL_windows.h is no longer necessary 2006-02-25 22:18:25 +00:00
Sam Lantinga
bf2d3bdc27 *** empty log message *** 2006-02-25 20:48:26 +00:00
Sam Lantinga
5146610dc6 Update for Visual C++ 6.0 2006-02-24 18:24:57 +00:00
Sam Lantinga
19ea2b958d Updated with MrC includes and function definitions 2006-02-24 17:03:06 +00:00
Sam Lantinga
911e5db87e *** empty log message *** 2006-02-24 10:23:49 +00:00
Sam Lantinga
7e11ec69f9 Updated MacOS Classic MPW build 2006-02-24 09:57:14 +00:00
Sam Lantinga
b633882919 Updated for Visual Studio Express 2005 2006-02-24 08:17:28 +00:00
Sam Lantinga
026aec11d6 Added pre-configured versions of SDL_config.h for various platforms 2006-02-24 07:26:31 +00:00
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