Commit Graph

1769 Commits

Author SHA1 Message Date
Sam Lantinga
d399ca9ce4 *** empty log message *** 2006-04-12 14:25:29 +00:00
Sam Lantinga
69f5e3c82f Patch from Alex to fix reverted code 2006-04-12 14:19:11 +00:00
Sam Lantinga
62630e91cd *** empty log message *** 2006-03-31 06:30:16 +00:00
Sam Lantinga
62dac2c788 Ugh, more 64-bit cleanup 2006-03-31 06:27:47 +00:00
Sam Lantinga
a1a6152214 Date: Wed, 29 Mar 2006 17:26:55 +0200 CEST
From: "Fran���is Revol"
Subject: [SDL] BeOS port fix: PrintScreen key crashing

It seems the latest SDL crashes when someone hits the PrtScrn key in
ZETA (BeOS R6), somewhere it gets a negative value as key code (or a
big unsigned maybe ?), and uses it as an index in the keysym table...
I'll investigate the cause for the negative value, but it's always
better to check for bounds correctly when indexing a table. The
attached diff fixes it.

Fran���is Revol
--
Software Architect
yellowTAB GmbH
2006-03-31 06:16:20 +00:00
Sam Lantinga
0bec3f3caa Fixed building DLL on Windows 2006-03-25 20:40:30 +00:00
Sam Lantinga
63695e2f76 Fixed some ultra-pedantic gcc warnings 2006-03-24 06:10:24 +00:00
Sam Lantinga
c4cb7306d5 Fixed bug #177
The attached patch changes configure.in to use "-framework FOO" instead of
"-Wl,-framework,FOO".

This avoid some issues with certain versions of libtool that do not handle
-framework properly.
Some versions of libtool will try to reorder the two parts of the option, or
render the 2nd part of the argument to the relative path of a non-existent
library.

Note: It is not enough if SDL uses a version of libtool that does this
correctly, because these -framework options show up in "sdl-config --libs".
Hence, some 3rd party apps which still ship with an old libtool have troubles
compiling under Mac OS X.
2006-03-24 05:11:51 +00:00
Ryan C. Gordon
ece098ba7b SDL_X11_LoadSymbols() was reporting success when required symbols weren't
found!
2006-03-24 03:49:37 +00:00
Ryan C. Gordon
3da774fbe3 Fixed compiler warning. 2006-03-23 22:11:29 +00:00
Sam Lantinga
dcc7daa066 A less rude way of doing the same thing... 2006-03-23 21:55:13 +00:00
Sam Lantinga
07a8850934 These files should be included from SDL_config.h (so they get SDL_platform.h) 2006-03-23 21:52:47 +00:00
Sam Lantinga
c7a3093842 ls shouldn't barf if it gets passed a path starting with - (e.g. -lesd) 2006-03-23 21:46:24 +00:00
Sam Lantinga
e1ae9a0b81 Fixed bug #175
Removed obsolete .cvsignore files... whee!
2006-03-23 21:39:58 +00:00
Sam Lantinga
235cf60d67 *** empty log message *** 2006-03-23 21:39:02 +00:00
Sam Lantinga
967de2d3dd Fixed bug #171
SDL_config.h is no longer in CVS.  Instead, configure will generate it for
systems that use configure, and we always copy SDL_config.h.default to
SDL_config.h before generating a snapshot or release archive.

Also fixed a couple of uninstall issues.
2006-03-23 21:28:33 +00:00
Sam Lantinga
7c5871f90d Fixed DirectFB detection 2006-03-23 17:31:12 +00:00
Sam Lantinga
55ff16fe29 Hopefully fixed up DirectFB detection 2006-03-23 15:25:30 +00:00
Sam Lantinga
45d6790639 *sigh* 2006-03-23 15:22:40 +00:00
Ryan C. Gordon
21c1fa5e46 More dynamic X11 mangling...should fix NetBSD builds. And hopefully doesn't
break 6 other platforms.  :)
2006-03-23 08:43:37 +00:00
Sam Lantinga
967ecbf1e0 Need time.h for nanosleep too... 2006-03-23 08:37:36 +00:00
Sam Lantinga
f5ef7406e0 Better wscons detection 2006-03-23 07:44:52 +00:00
Sam Lantinga
0257a5560c *** empty log message *** 2006-03-23 07:38:32 +00:00
Sam Lantinga
5542688e36 Only use the visibility attribute in gcc 4.0 or newer 2006-03-23 07:34:03 +00:00
Ryan C. Gordon
ebfefa19a9 Updated my email address. 2006-03-23 06:48:12 +00:00
Ryan C. Gordon
9c54c7ce36 Consolidate all the X11 libraries, so you don't have to update 12 different
places in the source when adding a new one. Also handles build systems that
 don't define a given library.
2006-03-23 02:47:56 +00:00
Sam Lantinga
041bc24207 Lines swapped to match ordering elsewhere 2006-03-22 22:42:44 +00:00
Ryan C. Gordon
10b3574ab7 Close off warning about setAppleMenu on Mac OS X 10.4 SDK.
Fixes Bugzilla #97.
2006-03-22 22:33:23 +00:00
Sam Lantinga
e7b76ca5dd Don't detect Altivec on MacOS X Intel 2006-03-22 22:29:44 +00:00
Ryan C. Gordon
b1bcd26c92 Xrandr support in the X11 target.
Fixes Bugzilla #109, and as a bonus, Bugzilla #145, too!
2006-03-22 11:13:58 +00:00
Sam Lantinga
aa79b0594b Improved DirectFB install detection 2006-03-22 09:18:10 +00:00
Sam Lantinga
da8044f050 *** empty log message *** 2006-03-22 09:13:10 +00:00
Ryan C. Gordon
4a8da61422 Patched to compile on 32-bit X11, I think. 2006-03-22 08:57:37 +00:00
Sam Lantinga
248ff92e7e Date: Tue, 4 Mar 2003 15:05:31 -0800
From: "Jim"
Subject: [SDL] Frame Buffer patches...

 Okay I'm new at patch generation - so please tell me if there's a better way
 I could have done this.

 Attached are two patch files generated with 'cvs diff -u'

 SDL-fb-open-lock.patch applies to SDL_fbvideo.c
    Modifies the open loop to check /dev/fb/0 found on devfs...

    Modifies the lock code to return failure if the current virtual terminal
 is not the one opened for frame buffer writing...
   Lock would hang forever if switched away (ctrl-alt-F1) ...

 SDL-fb-mousedrv-screensave.patch applies to SDL_fbevents.c
    Switches default mouse mode based on SDL_MOUSEDRV - currently only
 accepts PS2 - otherwise default is MS Mouse.

    When the screen is switched - exisiting code (wrapped in ifdef
 SAVE_SCREEN_COTENTS) would save the wrong bit of the screen....
     ( I run frame buffer 1600x1200, the size I requested was 800x600 - the
 save would save the top 800 lines (non biased) and restore them... Adding
 screen->offset fixed that )

    However, if that option is not set, then a call to SDL_UpdateRect (full
 screen) is made. (which may have had it's contents changed since the screen
 is not entirely locked because of lock-failure patch)

 Jim

[patches slightly tweaked for SDL 1.2.10]
2006-03-22 07:48:22 +00:00
Sam Lantinga
fd7f83dd28 Fixed bug #61
Date: Mon, 24 Feb 2003 13:35:11 +0800
From: "Leonidas"
Subject: [SDL] Re: Trigger mouse wheel event -- not in X-environment

I have looked into the codes for the IMPS/2 mouse wheel mode of fbcon driver.
But I found something weird.

Here's the original codes to set a mouse device into IMPS/2 mode in libSDL.
In the file src/video/fbcon/SDL_fbevents.c
In function static int set_imps2_mode(int fd)
...
 Uint8 set_imps2[] = {0xf3, 200, 0xf3, 100, 0xf3, 80};
 Uint8 reset = 0xff;
 fd_set fdset;
 struct timeval tv;
 int retval = 0;

 // Set mouse device fd into IMPS/2 mode
 if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
  // ??? then RESET it..???
  if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
   retval = 1;
  }
 }
...........

Since it sets IMPS/2 mode then reset it, so you will never get a mouse into
IMPS/2 mode to use its wheel.
What I did to make the wheel usable is remove the RESET codes.
....
 if ( write(fd, &set_imps2, sizeof(set_imps2)) == sizeof(set_imps2) ) {
    /*
    if (write(fd, &reset, sizeof (reset)) == sizeof (reset) ) {
    }
   */
   retval = 1;
 }
....
And in FB_OpenMouse(_THIS)
Make the device /dev/psaux to be setted into imps2 mode  such that it can be
detected its a imps/2 mouse or not.
(my mouse device is on ps2, but the codes only set /dev/input/mice device
originally)
Then I have done, I can use the mouse wheel when SDL uses frame buff driver.

I dont exactly know I did right or wrong, I just change it for my usuage.
Correct me please, if I did something wrong.

Best regards,
Li Tsung Lin
IAP Product Dept. Engineer
EeRise Corp. (Image Processing System, Computer Vision System)
Hsin Tien, Taipei Hsien, Taiwan, R.O.C.
2006-03-22 07:22:40 +00:00
Sam Lantinga
aecc79b780 *** empty log message *** 2006-03-22 07:10:38 +00:00
Sam Lantinga
32ee00ef9d Fixed bug #50
Using ctrl-alt-fn for flipping instead of alt-fn may help a few games that
actually use that key combination.

[Note: This is also consistent with X11 on the Linux console]
2006-03-22 06:43:25 +00:00
Sam Lantinga
da9ebfc4e9 Eric rocks. :) 2006-03-22 06:08:59 +00:00
Sam Lantinga
6de08454fa I'm dumping the old Xcode support, since it's too hard to maintain,
and SDL no longer builds on MacOS X 10.3 natively, as of the 7.0.4
QuickTime update.

MacOS X 10.4 is the new build baseline for the SDL MacOS X packages.

... it would shore be nice if I had it. :)
2006-03-22 05:59:28 +00:00
Sam Lantinga
f4023ae70f The exports file is no longer used by the Xcode project 2006-03-22 05:50:56 +00:00
Ryan C. Gordon
aa2b3e6f26 Reverted SDL_config.h from accidental checkin. (see Bugzilla #171). 2006-03-22 05:12:07 +00:00
Sam Lantinga
083c7dcb34 GLX_STEREO doesn't have a parameter 2006-03-22 05:09:27 +00:00
Ryan C. Gordon
a9551bd533 Whoops, that shouldn't have snuck in there. 2006-03-22 05:01:49 +00:00
Ryan C. Gordon
eb3f189e59 Updated dynamic X11 code. See details in Bugzilla #170. 2006-03-22 05:00:59 +00:00
Sam Lantinga
d48c53fb8f Default to use the visibility attribute, on gcc (is this okay?) 2006-03-22 04:51:44 +00:00
Ryan C. Gordon
b08954dad5 Added support for gcc4's -fvisibility=hidden option.
Fixes Bugzilla #169.
2006-03-22 01:28:36 +00:00
Sam Lantinga
310df05e46 *** empty log message *** 2006-03-21 16:04:44 +00:00
Sam Lantinga
e91878c9d5 Add /usr/local to the build paths by default 2006-03-21 10:38:41 +00:00
Sam Lantinga
1bb14e405b Updated to libtool-1.5.22 2006-03-21 10:20:44 +00:00
Sam Lantinga
e4ef688966 Fixed bug #167
The configure script parses the value of $X_LIBS when looking at the
--enable-x11-shared, which is getting set on Ubuntu 5.10 to "-L/usr/X11R6/lib"
... however, Ubuntu stores all the Xlib stuff in /usr/lib.

The end result in SDL is that the dynamic X11 stuff gets disabled by default,
unless you override like this:

 ./configure --x-libraries=/usr/lib
2006-03-21 09:51:33 +00:00