Commit Graph

1824 Commits

Author SHA1 Message Date
Sam Lantinga
874db0663d Fixed compilation on Mac OS X 10.3.9 2009-01-19 15:15:03 +00:00
Sam Lantinga
7ed3b5d46e Fix recommended by Eddy L O Jansson 2009-01-19 03:28:23 +00:00
Edgar Simo
bbcab32cb1 Some more safety around the SDL_HelperWindow stuff to avoid double creations. 2009-01-18 17:00:02 +00:00
Bob Pendleton
d3dee2dd2b Changes to hopefully handle the creation of a colormap for 8 bit PseudoColor visuals in X11 2009-01-15 21:35:42 +00:00
Sam Lantinga
bdbd0a16d6 Fixed OpenGL state issue reported by Dmytro Bogovych 2009-01-14 06:53:03 +00:00
Sam Lantinga
765fb4319c indent 2009-01-14 04:25:32 +00:00
Couriersud
966de9afa8 Fix fullscreen crash with DirectFB <= 1.2.0 2009-01-13 23:27:08 +00:00
Couriersud
745416da26 Fixed MakeSubSurface compiling issue for DirectFB <= 1.2.0 2009-01-13 22:59:02 +00:00
Couriersud
155e70d709 Added DFB_VERSION_ATLEAST macro
First attempt at replacing MakeSubSurface for pre 1.2.0 ==> Scaling not yet working
2009-01-13 21:17:38 +00:00
Bob Pendleton
42b61ebb9a Added
#ifndef SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS
#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS NULL
#endif

so that the X code would compile. It looked like it was needed
2009-01-13 19:31:06 +00:00
Sam Lantinga
6d79f1f7ac Removed Rafal Bursig's MMX RLE code, at his request. 2009-01-13 07:20:55 +00:00
Sam Lantinga
1f99ca8e72 Fixed NULL pointer dereference 2009-01-13 03:53:22 +00:00
Sam Lantinga
00db62df34 Fixed Visual C++ build 2009-01-12 08:46:28 +00:00
Sam Lantinga
b9aa239ff3 Don't complain when the GNOME screensaver isn't running (or available) 2009-01-12 08:28:17 +00:00
Sam Lantinga
081e30b877 This is so wrong, it hurts.
Instead of the GNOME screensaver respecting the MIT-SCREEN-SAVER extension
and registering for the screensaver idle event, it uses a completely different
control mechanism.  Our alternatives are to use dbus (very complicated) or
this really painful hack.
2009-01-12 08:26:24 +00:00
Sam Lantinga
06bfd7d230 Re-enable the screensaver at exit, just in case it's needed... 2009-01-12 08:23:47 +00:00
Sam Lantinga
5670d9e19e Don't disable the screen saver by default for windows applications 2009-01-12 08:23:12 +00:00
Sam Lantinga
42a8aa5af2 Reverted SDL_LoadICO_RW() addition, this should go in SDL_image 2009-01-12 06:21:34 +00:00
Sam Lantinga
276a01a55e Added an API to enable/disable the screen saver.
The screensaver is disabled by default when using SDL 1.2 compatibility.
Use the new XScreenSaver extension, removed unused DPMS extension.
2009-01-12 06:19:05 +00:00
Couriersud
1cd0eb7eba Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file. 2009-01-11 23:56:19 +00:00
Couriersud
30b61cd697 DirectFB cleanups & simple window manager
- use SDL_getenv, not getenv ...
- no more support for 0.9.25 - not even mentioned any longer on directfb.org
- fix fullscreen issues
- add a simple window manager unless the directfb team comes up with a working wm.

The driver has support for a very, very basic window manager you may
want to use when runnning with "wm=default". Use

export SDL_DIRECTFB_WM=1

to enable basic window borders including icon support. In order to have the window title rendered,
you need to have the following font installed:

/usr/share/fonts/truetype/freefont/FreeSans.ttf
2009-01-11 23:49:23 +00:00
Couriersud
cb4074788c Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit) 2009-01-11 23:39:11 +00:00
Ryan C. Gordon
7b1b655f97 First shot at new audio resampling code. 2009-01-11 04:46:42 +00:00
Ryan C. Gordon
691269eeef NULL-terminate the lists of autogenerated converters. 2009-01-11 04:46:14 +00:00
Ryan C. Gordon
9d2f640b65 Allow builds that reduce or eliminate the converters/resamplers.
We should probably give options to drop resamplers by channels, too, for
 developers that know they'll never need more than stereo, etc.
2009-01-11 04:39:09 +00:00
Sam Lantinga
e46e02cf96 Removed extra debug output 2009-01-10 23:57:12 +00:00
Sam Lantinga
19b003367c Reverted Bob's indent checkin 2009-01-10 21:50:26 +00:00
Sam Lantinga
22938ecdfb Fixed Visual C++ release build for Visual C++ 2005
* Some math functions become intrinsic in release mode, so we need to
  convert all the math functions into SDL math functions, like we did
  with the stdlib functions.
* Constant initializers of 8-bit values become calls to memset() in
  release mode, but memset() itself is an intrinsic when explicitly
  called.  So we'll just explicitly call memset() in those cases.
2009-01-10 18:32:24 +00:00
Bob Pendleton
68ff2ab932 I ran a global "make indent" it modified the following files. 2009-01-09 20:43:30 +00:00
Bob Pendleton
cb770fd58c Modified and totally untested code to load the color tables for DirectColor and PseudoColor windows. 2009-01-09 20:41:31 +00:00
Bob Pendleton
6766ea959f Changed and hopefully fixed support for DirectColor with support for gammaramps. 2009-01-09 20:39:33 +00:00
Ryan C. Gordon
1ddbabe312 First shot at autogenerated audio resamplers.
Don't check in a new SDL_audiotypecvt.c yet, though.
2009-01-09 15:41:45 +00:00
Sam Lantinga
3d68d0a77f Fixed lines intersecting the top corners of a rectangle 2009-01-05 07:07:48 +00:00
Sam Lantinga
b4433404fc Fixed mouse events with --disable-video-x11-xinput 2009-01-05 07:04:54 +00:00
Sam Lantinga
f9155718c8 define this value if it's not in the system headers 2009-01-05 06:35:16 +00:00
Sam Lantinga
4d1bcd78d1 Fixed bug #669
Generate a full set of SDLKey mappings when setting up the keyboard layout
2009-01-05 06:28:50 +00:00
Sam Lantinga
73efd7dfc9 Whoops, missing files from Couriersud's update 2009-01-05 01:48:15 +00:00
Sam Lantinga
9366043700 Fixed missing include for SDL_INIT_EVENTTHREAD 2009-01-04 23:48:23 +00:00
Sam Lantinga
ceb5e0b29f Date: Sun, 04 Jan 2009 20:53:30 +0100
From: Couriersud
Subject: SDL1.3 DirectFB patches

The attached contains the following directfb changes:

- Dynamic loading of libdirectfb.so. This may to turned off as well in configure
- Use linux-input by default. May be switched off by environment variable.
- Added some code which will use directfb's x11 backend when DISPLAY is set.
2009-01-04 23:43:33 +00:00
Sam Lantinga
773c885015 indent 2009-01-04 23:41:09 +00:00
Sam Lantinga
2429aeeee4 Added missing void 2009-01-04 23:36:53 +00:00
Sam Lantinga
eb2a8d36a0 Date: Sat, 3 Jan 2009 22:11:18 -0500
From: "Donny Viszneki"
Subject: Re: [SDL] Want to help with SDL 1.3?

>> > For example, here's a good quick project for someone from the TODO list:
>> > * Add diagonal line clipping to SDL_IntersectRectAndLine()

Just wanted to point out that the patch is available at
http://codebad.com/rect-line-ix.patch

I hereby grant Sam Lantinga an irrevocable non-exclusive distribution
license to this patch to do with as he wishes.
2009-01-04 19:33:21 +00:00
Sam Lantinga
25c5d89e10 Technically more correct 2009-01-04 19:26:50 +00:00
Sam Lantinga
9368227002 The core pointer is comprised of merging the inputs of all mice.
If there are other mice, they should show up in the device list, and
we want to report events from those devices instead of the core events.
However, if XInput isn't supported or we can't find other mice in the
device list, we'll add the core pointer and interpret normal mouse events.
2009-01-04 18:29:20 +00:00
Sam Lantinga
d40ff0ef82 indent 2009-01-04 17:14:27 +00:00
Sam Lantinga
933eb1f049 Make the SDL keysyms that represent unprintable ASCII values actually have
those values, for more intuitive use and better compatibility with SDL 1.2.
2009-01-04 17:10:04 +00:00
Sam Lantinga
58aa94ee7f Fixed some dependency issues with SDL_revision.h 2009-01-04 05:52:14 +00:00
Sam Lantinga
a2acb16266 Fixed some dependency issues with SDL_revision.h 2009-01-04 05:41:52 +00:00
Sam Lantinga
e19ae7644f Fine tuned revision code, updated testver 2009-01-04 05:27:13 +00:00
Sam Lantinga
76975e844e Make the current revision number available 2009-01-04 05:08:12 +00:00