Commit graph

1833 commits

Author SHA1 Message Date
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
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
6e89ce1c4a Fixed some dependency issues with SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403447
2009-01-04 05:52:14 +00:00
Sam Lantinga
dc7d3c42a8 Fixed some dependency issues with SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403446
2009-01-04 05:41:52 +00:00
Sam Lantinga
9e30d8021b Fine tuned revision code, updated testver
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403445
2009-01-04 05:27:13 +00:00
Sam Lantinga
0fde9f06da Make the current revision number available
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403444
2009-01-04 05:08:12 +00:00
Szymon Wilczek
cf5bc083ee Bug 653 bugfix
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403442
2009-01-03 12:00:20 +00:00
Sam Lantinga
7ed73609cf Fixed crash on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403441
2009-01-03 07:33:42 +00:00
Sam Lantinga
e5796d2a53 Fixed bug #663
Fixed mouse wheel direction

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403437
2009-01-03 06:12:05 +00:00
Sam Lantinga
dd23674bb7 The mouse position is relative to the client window.
Fixed setting the mouse focus when the mouse enters/leaves the window.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403436
2009-01-03 06:03:56 +00:00
Sam Lantinga
4a241fd21e Improved Direct3D YUV texture support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403435
2009-01-03 05:42:18 +00:00
Sam Lantinga
b4dd1e1c1a Query available formats before advertising them.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403434
2009-01-03 04:33:19 +00:00
Sam Lantinga
01419057d7 Should we also set the icon in the task manager?
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403433
2009-01-03 01:20:55 +00:00
Sam Lantinga
8e66442a4f Added support for translucent icons on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403432
2009-01-03 01:01:53 +00:00
Sam Lantinga
1ba6e5602c Added support for saving 32-bit BMP with alpha channel (disabled by default)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403431
2009-01-03 01:00:38 +00:00
Sam Lantinga
cd6f7dd74f Date: Fri, 02 Jan 2009 23:22:39 +0100
From: Couriersud
Subject: SDL1.3 Win32 Resize bug

the attached diff fixes a bug where width and height were exchanged when
resizing a window.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403430
2009-01-02 23:47:16 +00:00
Sam Lantinga
fea6781d86 Implemented SDL_SetWindowIcon(), with translucent icon support under X11.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403429
2009-01-02 17:39:48 +00:00
Sam Lantinga
00a0a23f4a indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403426
2009-01-02 16:03:37 +00:00
Sam Lantinga
b84ae14eeb Don't use DirectColor visuals until we implement DirectColor colormap support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403425
2009-01-02 15:47:49 +00:00
Sam Lantinga
959558fe22 Hopefully fixed crash when there are no input devices
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403424
2009-01-02 10:30:53 +00:00
Ryan C. Gordon
f62d6c171b Fixed off-by-one in audio converters, when growing a data type's size.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403418
2009-01-02 08:12:14 +00:00
Ryan C. Gordon
b96a3090e0 Avoid unnecessary assignment in generated audio type converters.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403417
2009-01-02 07:34:01 +00:00
Sam Lantinga
c16d0bb0ee Whoops, we need to actually fill the colormap on DirectColor visuals.
Temporarily disable them for now.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403416
2009-01-02 04:35:52 +00:00
Sam Lantinga
f2fc43acdc Date: Fri, 02 Jan 2009 00:54:48 +0100
From: Couriersud
Subject: SDL1.3 Two small bugs ...

The first bug is rather straight forward; XCloseDevice needs a device,
not an ID.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403414
2009-01-02 01:34:52 +00:00
Holmes Futrell
6b02e2aeb6 Modified OpenGL ES render driver to support new SDL_RenderFill, SDL_RenderLine, and SDL_RenderPoint.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403411
2009-01-01 23:47:33 +00:00
Sam Lantinga
9e2744e7fa Date: Thu, 01 Jan 2009 21:32:12 +0100
From: Couriersud
Subject: Fusionsound audio driver

attached is a diff containing a audio driver for the FusionSound
library. This sound library is closely related to DirectFB and uses the
same transport (fusion) as DirectFB when running applications "remote",
i.e. over the network. As such, it natively redirects sound where
DirectFB redirects video. This may be handy for everyone using SDL over
DirectFB.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403409
2009-01-01 21:34:22 +00:00
Sam Lantinga
2184f43b1c Fixed DirectColor visual window creation problem
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403407
2009-01-01 18:58:26 +00:00
Sam Lantinga
6891f04606 Oh yeah, it's an XInput symbol
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403405
2009-01-01 08:22:20 +00:00
Sam Lantinga
2191586507 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403404
2009-01-01 08:21:19 +00:00
Sam Lantinga
4bc10ea08f Added missing symbol
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403403
2009-01-01 08:19:56 +00:00
Sam Lantinga
57fa80fc86 Fixed X11 mouse motion/button events - it's not actually safe to cast mouse events to device events.
Fixed building SDL without XInput support
Simplified the process of registering a mouse device

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403402
2009-01-01 07:59:08 +00:00
Ryan C. Gordon
30768ab2aa Audio driver priority: favor PulseAudio and ALSA over OSS.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403401
2009-01-01 07:58:20 +00:00
Ryan C. Gordon
0e24b20c3b Adjusted default choice of audio driver.
If a driver can definitely see available devices, it is chosen. Otherwise,
 we'll take the first driver that initializes but saw no devices...this might
 be because it can't enumerate them, or there really aren't any available.

This prevents the dsp driver from hogging control when there are no /dev/dsp*
 nodes (for example, on a Linux box with ALSA and no OSS emulation).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403400
2009-01-01 07:54:58 +00:00
Sam Lantinga
6611747b8f Removed unused variable
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403399
2008-12-31 08:05:21 +00:00
Sam Lantinga
599fb25b17 iPhone build compiles again (drawing routines need to be implemented)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403398
2008-12-31 07:56:56 +00:00
Sam Lantinga
61268c787d Fixed logic problem with SDL_RestoreWindow()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403396
2008-12-31 07:11:53 +00:00
Sam Lantinga
32abe02338 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403395
2008-12-31 06:18:33 +00:00
Sam Lantinga
1b875a5a28 Implemented Direct3D line and point drawing
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403394
2008-12-31 06:17:24 +00:00
Sam Lantinga
bfbe8d8488 Date: Mon, 29 Dec 2008 23:29:52 +0100
From: Couriersud
Subject: SDL1.3: Some X11 diffs

The attached diff fixes the following issues in the X11 backend:

a) When calling resize, actually a move was performed. This has been
corrected.

b) DisplayHeight and DisplayWidth do not return up-to-date information
after a modeswitch using the xrandr code, which I enabled in
x11_modes.c
Height and width are now queried from the root window and all
occurrences of DisplayHeight and DisplayWidth changed.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403393
2008-12-30 17:09:42 +00:00
Sam Lantinga
14ddac6468 Date: Mon, 29 Dec 2008 23:29:52 +0100
From: Couriersud

I have attached the latest DirectFB changes.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403392
2008-12-30 17:02:53 +00:00
Sam Lantinga
f49c8bb557 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403391
2008-12-30 17:02:06 +00:00
Sam Lantinga
a6a8062f6c Fixed missing return value
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403390
2008-12-30 07:15:46 +00:00
Sam Lantinga
3fc02a176b SetDrawColor() and SetDrawBlendMode() are optional
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403389
2008-12-30 07:14:11 +00:00
Sam Lantinga
b876226c2f In theory this implements GDI rendering, but it doesn't work for some reason.
Also removed blending support from the advertised interface, since it's not
actually supported.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403388
2008-12-30 04:38:39 +00:00
Sam Lantinga
2b206b6e63 Swapped functions to match the other renderer files
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403387
2008-12-30 04:22:24 +00:00
Sam Lantinga
63191e7a8b Significant performance boost with blend mode none
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403384
2008-12-29 19:48:01 +00:00
Sam Lantinga
08e0277512 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403382
2008-12-25 05:26:29 +00:00