Mon, 15 Sep 2003 13:51:25 +0000Date: Sun, 14 Sep 2003 17:04:55 -0400
Ryan C. Gordon [Mon, 15 Sep 2003 13:51:25 +0000] rev 717
Date: Sun, 14 Sep 2003 17:04:55 -0400
From: Philip D.S. Thoren <pthoren@cs.uml.edu>
Reply-To: "sdl@libsdl.org" <sdl@libsdl.org>
To: "sdl@libsdl.org" <sdl@libsdl.org>
Subject: [SDL] BUG in src/video/windx5/SDL_dx5events.c

I tracked down a bug that crashed my program on Windows *all* the
time.

FILE: src/video/windx5/SDL_dx5events.c

FUNCTION: handle_mouse
BUG:
SDL_PublicSurface is being dereferenced when it is NULL.
I added the following to the very begining of handle_mouse
and it solved my crashing problems:

if (SDL_PublicSurface == NULL) return;

~ Philip D.S. Thoren

Sat, 13 Sep 2003 02:20:32 +0000SDL_JoystickInit: If malloc() fails, pretend no joysticks were detected.
Ryan C. Gordon [Sat, 13 Sep 2003 02:20:32 +0000] rev 716
SDL_JoystickInit: If malloc() fails, pretend no joysticks were detected.

Fri, 05 Sep 2003 15:20:47 +0000Date: Mon, 01 Sep 2003 15:37:52 +0900
Sam Lantinga [Fri, 05 Sep 2003 15:20:47 +0000] rev 715
Date: Mon, 01 Sep 2003 15:37:52 +0900
From: SUGIMOTO Sadahiro
Subject: [SDL] [PATCH] bsd joystick

Hi,
on FreeBSD systems, I had troubles using a USB joystick with SDL.
There are two problems in src/joystick/bsd/SDL_sysjoystick.c .

1. The macro __FreeBSD_version is compared to inappropriate numbers.

According to
http://www.jp.freebsd.org/cgi/cvsweb.cgi/src/lib/libusbhid/usbhid.h
http://www.jp.freebsd.org/cgi/cvsweb.cgi/src/lib/libusbhid/Attic/libusb.h
http://www.jp.freebsd.org/cgi/cvsweb.cgi/src/lib/libusbhid/Attic/libusbhid.h
the APIs of USB HID are common in each following groups of OS versions,
a. 4.1-4.5
b. 4.6-4.8, and 5.0
c. 5.1

2. open() error

$ uname -sr
FreeBSD 5.1-RELEASE
$ ls -l /dev/uhid0
crw-r--r-- 1 root operator 122, 0 8 3 14:06 /dev/uhid0

Then, open("/dev/uhid0", O_RDWR) fails.
It seems that this device file does not need to be writable, so O_RDONLY
may be suitable.

Fri, 05 Sep 2003 15:19:14 +0000Update SDL version
Sam Lantinga [Fri, 05 Sep 2003 15:19:14 +0000] rev 714
Update SDL version

Fri, 05 Sep 2003 15:18:46 +0000Fixed X11 mode line crash with only one video mode (thanks Alan!)
Sam Lantinga [Fri, 05 Sep 2003 15:18:46 +0000] rev 713
Fixed X11 mode line crash with only one video mode (thanks Alan!)

Wed, 03 Sep 2003 20:07:16 +0000Finally bugfixed: the simpler the better
Patrice Mandin [Wed, 03 Sep 2003 20:07:16 +0000] rev 712
Finally bugfixed: the simpler the better

Tue, 02 Sep 2003 19:49:50 +0000Severe bugfix: format->BitsPerPixel not checked in ListModes function
Patrice Mandin [Tue, 02 Sep 2003 19:49:50 +0000] rev 711
Severe bugfix: format->BitsPerPixel not checked in ListModes function

Sun, 31 Aug 2003 02:58:29 +0000Added SDL_loadso.c to the CodeWarrior project release-1.2.6
Sam Lantinga [Sun, 31 Aug 2003 02:58:29 +0000] rev 710
Added SDL_loadso.c to the CodeWarrior project

Sun, 31 Aug 2003 02:46:24 +0000Added SDL_loadso.c to the project
Sam Lantinga [Sun, 31 Aug 2003 02:46:24 +0000] rev 709
Added SDL_loadso.c to the project

Sat, 30 Aug 2003 22:20:07 +0000Fixed building SDL_loadso.c on MacOS Classic
Sam Lantinga [Sat, 30 Aug 2003 22:20:07 +0000] rev 708
Fixed building SDL_loadso.c on MacOS Classic