Commit graph

2585 commits

Author SHA1 Message Date
Bob Pendleton
4907b7e608 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403498
2009-01-13 19:31:06 +00:00
Sam Lantinga
bb8513855f Removed Rafal Bursig's MMX RLE code, at his request.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403497
2009-01-13 07:20:55 +00:00
Sam Lantinga
97baa9c439 Fixed NULL pointer dereference
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403496
2009-01-13 03:53:22 +00:00
Couriersud
aa47998f53 Fix third party "-Wall -Werror" builds
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403495
2009-01-12 22:36:12 +00:00
Sam Lantinga
e43f6d619e Fixed Visual C++ build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403494
2009-01-12 08:46:28 +00:00
Sam Lantinga
9116448bf3 Don't complain when the GNOME screensaver isn't running (or available)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403493
2009-01-12 08:28:17 +00:00
Sam Lantinga
538276cc18 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403492
2009-01-12 08:26:24 +00:00
Sam Lantinga
a097a4105f Re-enable the screensaver at exit, just in case it's needed...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403491
2009-01-12 08:23:47 +00:00
Sam Lantinga
92091bf9b8 Don't disable the screen saver by default for windows applications
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403490
2009-01-12 08:23:12 +00:00
Sam Lantinga
3c5fca041a Fixed snapshot target
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403489
2009-01-12 06:22:26 +00:00
Sam Lantinga
439443508b Reverted SDL_LoadICO_RW() addition, this should go in SDL_image
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403488
2009-01-12 06:21:34 +00:00
Sam Lantinga
4ca3bd3da1 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403487
2009-01-12 06:19:05 +00:00
Couriersud
4bb83c1f39 Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403486
2009-01-11 23:56:19 +00:00
Couriersud
2cd9219893 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403485
2009-01-11 23:49:23 +00:00
Couriersud
3e968cec07 Fix a 64bit issue in linux/SDL_sysjoystick (int != long on 64bit)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403484
2009-01-11 23:39:11 +00:00
Ryan C. Gordon
fea75bcab7 First shot at new audio resampling code.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403483
2009-01-11 04:46:42 +00:00
Ryan C. Gordon
8ca737d47a NULL-terminate the lists of autogenerated converters.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403482
2009-01-11 04:46:14 +00:00
Ryan C. Gordon
ed652245d1 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403481
2009-01-11 04:39:09 +00:00
Ryan C. Gordon
0e098f09da testresample.c: Write out correct size for resampled buffer.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403480
2009-01-11 04:29:36 +00:00
Ryan C. Gordon
b2df168af0 Added testresample.c
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403479
2009-01-11 04:05:28 +00:00
Sam Lantinga
fefd30f7bf Added svn ignore property for SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403478
2009-01-11 02:18:18 +00:00
Sam Lantinga
6350aaf230 Removed extra debug output
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403477
2009-01-10 23:57:12 +00:00
Sam Lantinga
15c5312d9d Check for functions after including the libraries that they might be in.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403476
2009-01-10 22:36:30 +00:00
Sam Lantinga
d123950aa3 Reverted Bob's indent checkin
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403475
2009-01-10 21:50:26 +00:00
Sam Lantinga
e32916c7f0 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403474
2009-01-10 18:32:24 +00:00
Bob Pendleton
44fa7675c8 I ran a global "make indent" it modified the following files.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403473
2009-01-09 20:43:30 +00:00
Bob Pendleton
d088f9a9ca Modified and totally untested code to load the color tables for DirectColor and PseudoColor windows.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403472
2009-01-09 20:41:31 +00:00
Bob Pendleton
3f633e7313 Changed and hopefully fixed support for DirectColor with support for gammaramps.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403471
2009-01-09 20:39:33 +00:00
Ryan C. Gordon
742f9c70bf First shot at autogenerated audio resamplers.
Don't check in a new SDL_audiotypecvt.c yet, though.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403470
2009-01-09 15:41:45 +00:00
Sam Lantinga
867fb59f7c Date: Fri, 9 Jan 2009 19:18:23 +0600
Subject: SDL. macos build problem

   When I try to cross-build SDL1.3 r4362 it fails for macos. It seems there
is a typo in configure.in. Please, consider attached patch.

Mikle

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403469
2009-01-09 13:58:28 +00:00
Sam Lantinga
c08c1cf308 Implemented by Donny Viszneki
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403468
2009-01-06 04:33:57 +00:00
Sam Lantinga
687b3cce98 Added Donny Viszneki to the credits for finding and fixing SDL 1.3 bugs
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403467
2009-01-05 07:28:32 +00:00
Sam Lantinga
3171d3d0a7 Fixed lines intersecting the top corners of a rectangle
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403466
2009-01-05 07:07:48 +00:00
Sam Lantinga
d1033aea54 Fixed mouse events with --disable-video-x11-xinput
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403465
2009-01-05 07:04:54 +00:00
Sam Lantinga
b1aa228b9c define this value if it's not in the system headers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403464
2009-01-05 06:35:16 +00:00
Sam Lantinga
3209bc5b6d Fixed bug #669
Generate a full set of SDLKey mappings when setting up the keyboard layout

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403463
2009-01-05 06:28:50 +00:00
Sam Lantinga
fe0aae4a6f Whoops, missing files from Couriersud's update
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403462
2009-01-05 01:48:15 +00:00
Sam Lantinga
ed954cec36 Fixed missing include for SDL_INIT_EVENTTHREAD
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403461
2009-01-04 23:48:23 +00:00
Sam Lantinga
7c0f19e5aa 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403460
2009-01-04 23:43:33 +00:00
Sam Lantinga
ba8f64f259 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403459
2009-01-04 23:41:09 +00:00
Sam Lantinga
dade1f12e6 Added missing void
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403458
2009-01-04 23:36:53 +00:00
Sam Lantinga
33fcc9cdfe Added more info for precise waiting in SDL_WaitEvent()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403457
2009-01-04 19:36:55 +00:00
Sam Lantinga
522eb2b9e1 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403456
2009-01-04 19:33:21 +00:00
Sam Lantinga
3ca7408da3 Technically more correct
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403455
2009-01-04 19:26:50 +00:00
Sam Lantinga
1627124ff0 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403454
2009-01-04 18:29:20 +00:00
Sam Lantinga
4307faf9d4 Implemented svn revision support
Added reminder about name -> scancode/keysym mapping

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403453
2009-01-04 17:30:00 +00:00
Sam Lantinga
1b9b40835c indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403452
2009-01-04 17:14:27 +00:00
Sam Lantinga
ff8b5276a7 Make the SDL keysyms that represent unprintable ASCII values actually have
those values, for more intuitive use and better compatibility with SDL 1.2.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403451
2009-01-04 17:10:04 +00:00
Sam Lantinga
17068c0bf6 Added keyrepeat to the TODO list
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403450
2009-01-04 17:04:29 +00:00
Sam Lantinga
c5cf02e99d Added the Google Summer of Code folks to the credits.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403449
2009-01-04 17:04:13 +00:00