Commit Graph

355 Commits

Author SHA1 Message Date
Sam Lantinga
7f3d6deffd Implemented SDL_SetWindowIcon(), with translucent icon support under X11. 2009-01-02 17:39:48 +00:00
Sam Lantinga
7a39366cbb The _NET_WM_ICON protocol doesn't require the icon to be set before the window is shown. 2009-01-02 09:50:25 +00:00
Holmes Futrell
7375c9648c Re-enabled joystick support during compilation. 2009-01-01 23:01:05 +00:00
Sam Lantinga
f4135a38db 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.
2009-01-01 21:34:22 +00:00
Sam Lantinga
de843c65d6 Added line clipping 2008-12-23 02:23:18 +00:00
Sam Lantinga
9feaa729fd typo fix 2008-12-22 05:29:55 +00:00
Sam Lantinga
8318ef98b6 Added RenderPiont() API
Merged the drawing tests into a single test program
2008-12-21 17:39:41 +00:00
Sam Lantinga
f2c09059c1 Added stubs for software implementations of blending fills and line drawing 2008-12-20 13:14:28 +00:00
Sam Lantinga
18ce8e4eca Minor corrections 2008-12-20 12:32:38 +00:00
Sam Lantinga
94e70de686 Date: Fri, 19 Dec 2008 20:17:35 +0100
From: Couriersud
Subject: Re: Aw: Experience using SDL1.3 in sdlmame/Proposal for api additions

> For consistency you'd probably want:
> SDL_SetRenderDrawColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a);
> SDL_SetRenderDrawBlendMode(SDL_BlendMode blendMode);
> SDL_RenderLine(int x1, int y1, int x2, int y2);
> SDL_RenderFill(SDL_Rect *rect);
>
> You probably also want to add API functions query the current state.
>

I have implemented the above api for the opengl, x11, directfb and
software renderers. I have also renamed *TEXTUREBLENDMODE* constants to
BLENDMODE*. The unix build compiles. The windows renderer still needs to
be updated, but I have no windows development machine at hand. Have a
look at the x11 renderer for a sample.

Vector games now run at 90% both on opengl and directfb in comparison to
sdlmame's own opengl renderer. The same applies to raster games.

The diff also includes

a) Changed XDrawRect to XFillRect in x11 renderer
b) A number of changes to fix blending and modulation issues in the
directfb renderer.
2008-12-20 12:00:00 +00:00
Sam Lantinga
893e52b5a0 Corrected case for TargetConditionals.h 2008-12-14 07:22:15 +00:00
Sam Lantinga
c5a8886195 Fixed SDL 1.2 compatibility problem.
The API specifies that SDL_OpenAudio() will fill out the 'desired' audio spec
with the correct samples and size set by the driver.  This value is important
since it may be used by applications that size audio buffers, etc.

However, we want to allow advanced applications to call SDL_OpenAudioDevice()
which gets passed a const 'desired' parameter, and have the correct data filled
into the 'obtained' parameter, possibly allowing or not allowing format changes.

So... 'obtained' becomes the audio format the user callback is expected to use,
and we add flags to allow the application to specify which format changes are
allowed.

Note: We really need to add a way to query the 'obtained' audio spec.
2008-12-13 06:36:47 +00:00
Sam Lantinga
369350caa0 Added current_w and current_h to SDL_VideoInfo for SDL 1.2 compatibility 2008-12-12 06:46:20 +00:00
Sam Lantinga
befb0f7f42 Updated copyright date 2008-12-08 00:27:32 +00:00
Sam Lantinga
766c1e1e93 Added very slow software scaling to the X11 renderer 2008-12-03 12:10:51 +00:00
Sam Lantinga
106af10068 Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available. 2008-11-30 21:58:23 +00:00
Sam Lantinga
69c1e59e91 The SDL_RLEACCEL flag is respected in SDL_ConvertSurface(), per the docs.
Fixed saving BMP files of surfaces with an alpha channel.
2008-11-29 11:26:01 +00:00
Sam Lantinga
eb7a0d4ec7 Updated with latest glext.h 2008-11-25 08:40:52 +00:00
Sam Lantinga
825b0b08f1 Fixed Bugzilla bug #205
Removed SDL_KillThread() from the API, as it isn't safe on many platforms.
2008-11-24 00:18:42 +00:00
Sam Lantinga
c1dc5d87c3 Disabled the Haptic API on iPhone, changed the order of the header to match
the other config headers.
2008-10-16 12:22:56 +00:00
Sam Lantinga
92c3984118 Final merge of Google Summer of Code 2008 work...
Bring SDL to iPhone and iPod Touch
by Holmes Futrell, mentored by Sam Lantinga
2008-10-04 06:46:59 +00:00
Ryan C. Gordon
5b27f96366 Some cleanups on the new XInput code.
One or two things got moved around, but largely this is hooked up correctly
 in the Unix configure system now: it can be dynamically loaded and fallback
 gracefully if not available, or libXi can be directly linked to libSDL.

XInput support can be --disable'd from the configure script, too (defaults to
 enabled).

Please note that while the framework is in place to gracefully fallback, the
 current state of the source requires XInput. We'll need to adjust a few
 things still to correct this.
2008-09-17 08:20:57 +00:00
Sam Lantinga
458f7b5b0c indent 2008-09-15 04:32:36 +00:00
Holmes Futrell
2f926dac88 Added SDL_GL_RETAINED_BACKING attribute to SDL_GLattr 2008-09-02 20:27:47 +00:00
Holmes Futrell
c6aae19257 Serves a similar purpose as SDL_opengl.h, except for OpenGLES. 2008-09-02 20:22:05 +00:00
Sam Lantinga
708f4c7ac5 indent 2008-08-31 16:03:55 +00:00
Sam Lantinga
9c4b835e49 Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
2008-08-27 15:10:03 +00:00
Edgar Simo
fffbd1a1d1 Changed spaces to tabs. 2008-08-26 11:40:37 +00:00
Sam Lantinga
f74840152b Fixed compile errors for audio resampling. I'm not sure how this got missed... 2008-08-26 02:26:18 +00:00
Szymon Wilczek
92d9759a5f Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton 2008-08-25 18:02:14 +00:00
Sam Lantinga
a6fa308712 Final merge of Google Summer of Code 2008 work...
Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon
2008-08-25 09:55:03 +00:00
Sam Lantinga
474cfaad1e Final merge of Google Summer of Code 2008 work...
Many-mouse and tablet support
by Szymon Wilczek, mentored by Ryan C. Gordon

Everything concerning the project is noted on the wiki:
http://wilku.ravenlord.ws/doku.php?id=start
2008-08-25 06:33:00 +00:00
Sam Lantinga
a5968b9cb6 Missing keysym defines 2008-08-25 05:30:28 +00:00
Sam Lantinga
eb59b3278d Reverted Holmes' changes, they should be on the iphone branch 2008-07-05 16:15:44 +00:00
Holmes Futrell
a406dfe2a4 disabled compile time assertion ... no 64 bit primitive types available on iPhone (it appears) 2008-06-22 23:13:02 +00:00
Holmes Futrell
3995fbbd73 Added iPhone OS (__IPHONEOS__) as a platform 2008-06-22 23:12:02 +00:00
Holmes Futrell
b32793e1f9 iPhone OS uses a custom main 2008-06-22 23:10:44 +00:00
Sam Lantinga
48b1db8b30 Date: Wed, 7 May 2008 21:48:10 +0200
From: Christian Walther
Subject: SDL 1.3 Xcode projects

Here are my promised updates to the Xcode projects. They work as far
as I'm using them, but I have not tested them thoroughly, and there
may still be some cruft left. In particular, I haven't checked whether
the frameworks still work on older versions of Mac OS X (are we still
targeting 10.2?), and whether Altivec/SSE optimizations are properly
done. Of note: I incremented the framework version to B to enable SDL
1.2 and 1.3 to coexist in a single framework.

Let me know if you see any problems.

Greetings

   Christian
2008-05-08 05:06:24 +00:00
Bob Pendleton
97f034bc79 ran make indent 2008-03-14 20:43:44 +00:00
Bob Pendleton
b6e476a69b re: bug#563. checking in some commented out trace code and a fix so that the in testalpha.c the background only flashes when alpha == 255. The problem that is being
fixed is caused by clearing SDL_COPY_RLE_COLORKEY without setting SDL_COPY_RLE_DESIRED in SDL_UnRELSurface.
2008-03-14 18:17:49 +00:00
Sam Lantinga
37131333be First pass of new SDL scancode concept for X11. 2008-02-07 15:31:09 +00:00
Sam Lantinga
0f9d544f5e First pass implementation of new SDL scancode concept, as discussed with
Christian Walther.  Currently only implemented on Mac OS X for sanity
checking purposes.
2008-02-05 07:19:23 +00:00
Ryan C. Gordon
fd734cede6 Merged r3534:3535 from branches/SDL-1.2: Reset direction flag in SDL_revcpy(). 2008-02-04 17:25:33 +00:00
Bob Pendleton
16c4fcc95c Minimal implementation of textinput events for x11. It only works for latin-1. 2008-01-15 22:37:17 +00:00
Bob Pendleton
e065abc334 Checking in Christian Walther's patch for x11 keyboard input. Minor code tweaks by Bob. 2008-01-08 00:10:46 +00:00
Sam Lantinga
a4fa98c9b0 Fixed bug #464
Added X1/X2 button constants
2007-12-29 06:09:25 +00:00
Sam Lantinga
ea72f5eaf6 Merged revision 3458 from SDL 1.2, fixed Borland C alloca() prototype 2007-12-28 08:07:57 +00:00
Ryan C. Gordon
0e7872fd7d Merged r3449:3450 from branches/SDL-1.2: SDL_config.h.in Linux joystick fix. 2007-09-25 10:01:10 +00:00
Sam Lantinga
4f2f07efff Split out the SDL_rect and SDL_surface functions into their own headers.
Removed unused count from the dirty rect list.
2007-09-10 12:20:02 +00:00
Ryan C. Gordon
76eb0e6b90 Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Fixes Bugzilla #439.
2007-08-20 01:02:37 +00:00