Commit graph

2309 commits

Author SHA1 Message Date
Sam Lantinga
809f6ba3b4 Updated Visual C++ build
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403216
2008-09-15 07:34:36 +00:00
Sam Lantinga
588cd82706 more more!
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403215
2008-09-15 06:49:23 +00:00
Sam Lantinga
547cc38d9a Yet more math...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403214
2008-09-15 06:48:41 +00:00
Sam Lantinga
2188a0fac6 Whoops, missed a file...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403213
2008-09-15 06:46:23 +00:00
Sam Lantinga
9a334b7a8d Expanded the libm support and put it into a separate directory.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403212
2008-09-15 06:33:23 +00:00
Sam Lantinga
193af03fca --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403211
2008-09-15 05:14:11 +00:00
Ryan C. Gordon
f2d42b08a5 Merged r4087:4088 from branches/SDL-1.2: missing semicolon.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403210
2008-09-15 05:09:45 +00:00
Sam Lantinga
a9ba7ee031 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403208
2008-09-15 04:32:36 +00:00
Sam Lantinga
5f94466c7b http://sources.redhat.com/ml/newlib/2002/msg00230.html
Stephen L Moshier wrote:
>
> pow(x,y) returns 0 when x is very close to -1.0 and y is very large.
> The following test program prints
>
> pow(1.0000000000000002e+00 4.5035996273704970e+15) = 2.7182818284590455e+00
> pow(-1.0000000000000002e+00 4.5035996273704970e+15) =0.0000000000000000e+00
> pow(9.9999999999999978e-01 4.5035996273704970e+15) = 3.6787944117144222e-01
> pow(-9.9999999999999978e-01 4.5035996273704970e+15) = 0.0000000000000000e+00
>
> which is incorrect for the negative arguments raised to an odd integer
> power.
>
> -----
> double pow (double, double);
>
> int
> main ()
> {
>   double x, y, z;
>
>   x = 1.0 + pow (2.0, -52.0);
>   y = 1.0 + pow (2.0, 52.0);
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = -x;
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = 1.0 - pow (2.0, -52.0);
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
>   x = -x;
>   z = pow (x, y);
>   printf ("pow(%.16e %.16e) = %.16e\n", x, y, z);
> }
> -----
>
> Here is a patch for newlib/libm/math/epow.c:

Patch checked in and duplicated for ef_pow.c.  Thanks.

-- Jeff J.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403207
2008-09-15 04:31:30 +00:00
Ryan C. Gordon
ccdbc38442 Merged r4082:4083 from branches/SDL-1.2: sparc64 crash fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403205
2008-09-08 07:38:41 +00:00
Darren Alton
e5621bf196 Fixes to the NDS sprite2 test. Illustrates partially working texture-as-sprite functionality.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403203
2008-09-06 04:31:34 +00:00
Darren Alton
a2947b8889 Initial work for NDS haptic support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403202
2008-09-06 00:10:16 +00:00
Edgar Simo
2266a03856 Allow testing haptic devices by index.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403201
2008-09-04 13:43:39 +00:00
Holmes Futrell
1051156e2b Added SDL_GL_RETAINED_BACKING attribute to SDL_GLattr
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403200
2008-09-02 20:27:47 +00:00
Holmes Futrell
435f8a3a56 Serves a similar purpose as SDL_opengl.h, except for OpenGLES.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403199
2008-09-02 20:22:05 +00:00
Holmes Futrell
6367fbe6e0 Added support for OpenGL ES renderer
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403198
2008-09-02 20:19:45 +00:00
Holmes Futrell
a2abb3b66b Ran GNU indent on file
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403197
2008-09-02 20:11:06 +00:00
Holmes Futrell
fcc9f44538 Rolling back changes to revision 4071 ... made some mistakes, will try merging work again.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403196
2008-09-02 20:05:33 +00:00
Holmes Futrell
ef7cdd91d3 Added retained backing attribute, reference to UIKit renderer
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403195
2008-09-02 19:53:56 +00:00
Holmes Futrell
a4d2b48922 This file serves a similar purpose as SDL_glfuncs.h, but for the OpenGL ES renderer.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403194
2008-09-02 02:44:45 +00:00
Holmes Futrell
0bbde65231 Added OpenGL ES support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403193
2008-09-02 02:27:06 +00:00
Holmes Futrell
048e3adb1a These files are similar in purpose and structure as SDL_renderer_gl.c and SDL_renderer_gl.h, except they use OpenGL ES 1.1 for rendering.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403192
2008-09-02 00:37:04 +00:00
Sam Lantinga
cd839b4bd3 Fixed a bunch of compile warnings on Mac OS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403191
2008-09-01 16:04:20 +00:00
Sam Lantinga
771abd3620 Date: Sun, 31 Aug 2008 17:53:59 +0200
From: Couriersud
Subject: Re: Updated DirectFB driver for SDL1.3

attached is a patch which brings the directfb driver in line with
current svn. In addition:

* driver now is in line with the structure of the X11 driver.
  This adds a couple of files.
* driver now supports relative mouse movements

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403190
2008-08-31 16:04:32 +00:00
Sam Lantinga
9be698fbe6 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403189
2008-08-31 16:03:55 +00:00
Sam Lantinga
ede44c4b85 Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403188
2008-08-27 15:10:03 +00:00
Szymon Wilczek
e6faee6b2a Many mouse and tablet linux test file added
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403186
2008-08-27 13:37:19 +00:00
Edgar Simo
9b7084ebd4 Fix for mingw compilation by Alam.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403184
2008-08-26 11:50:37 +00:00
Edgar Simo
7c530667ee Changed spaces to tabs.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403183
2008-08-26 11:40:37 +00:00
Edgar Simo
bd6d9f3ba2 svn:ignore files generated by xcode.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403182
2008-08-26 11:27:30 +00:00
Edgar Simo
ff035aa8e4 Update to xcode to include haptic subsystem stuff by Alam.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403181
2008-08-26 11:18:34 +00:00
Edgar Simo
5001b4e35a Missing an include.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403180
2008-08-26 11:17:16 +00:00
Sam Lantinga
5e73fc7c16 Fixed Visual Studio compilation problems
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403179
2008-08-26 07:34:49 +00:00
Sam Lantinga
a4af7a72fe Fixed crash when tablet isn't detected properly
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403178
2008-08-26 07:34:23 +00:00
Sam Lantinga
a13b4b8736 Dynamically load wintab32.dll
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403177
2008-08-26 06:03:48 +00:00
Sam Lantinga
d9f99f5203 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403176
2008-08-26 05:57:41 +00:00
Sam Lantinga
3c232989ce Added Wacom API headers.
FIXME: Dynamically load the Wacom API functions from wintab32.dll

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403175
2008-08-26 05:26:28 +00:00
Sam Lantinga
4dd047e9c7 Couriersud fixed bug #603
Using the following sequence

SDL_Init(..:)
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)
SDL_DestroyWindow
SDL_CreateWindow(..., SDL_WINDOW_OPENGL)

SDL will crash in X11_GL_GetVisual. This is due to the fact that
during SDL_DestroyWindow X11_GL_Shutdown was called because the last window
has been closed.

On the next call to SDL_CreateWindow the library is still loaded and only the
memory is reinitialized. Function pointers such as gl_data->glXChooseVisual
will not be reinitialized.

Consequently, SDL will crash due to a NULL pointer access.

The attached patch corrects the behaviour.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403174
2008-08-26 02:47:26 +00:00
Sam Lantinga
4dd96455cc indent. *sigh*
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403173
2008-08-26 02:40:24 +00:00
Sam Lantinga
1127f31992 Date: Sun, 20 Jul 2008 22:34:37 +0200
From: Couriersud
Subject: Updated DirectFB driver for SDL1.3

please find attached a patch for an updated directfb driver for SDL1.3.
It does now
- properly supported the new input api.
- send unicode text events
- support directfb windows
- support multiple screens
- support hardware YUV scaling for the first YUV texture created.
- support hardware scaling for textures.
- properly interpret streaming access
- support software opengl if one manages to install the mesa directfb
driver (broken/not broken in mesa svn)

Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there
is another patch which fixes a crash due to GL context creation.

Kind regards,

couriersud

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403172
2008-08-26 02:32:45 +00:00
Sam Lantinga
a1b6c39a96 Fixed compile errors for audio resampling. I'm not sure how this got missed...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403171
2008-08-26 02:26:18 +00:00
Edgar Simo
2d697eb0ad Merged force_feedback_branch r4042: unbuildability of dummy haptic driver with some configurations.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403170
2008-08-25 20:51:03 +00:00
Szymon Wilczek
96e1657806 Removed unneccesary code lines. Fixed mousename bug. Added lacking code in mousebutton
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403168
2008-08-25 18:02:14 +00:00
Edgar Simo
f3a0aca8ff Merge of force feedback branch r4039.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403167
2008-08-25 17:34:58 +00:00
Sam Lantinga
0eeb8c92b6 Final merge of Google Summer of Code 2008 work...
Audio Ideas - Resampling and Pitch Shifting
by Aaron Wishnick, mentored by Ryan C. Gordon

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403165
2008-08-25 15:08:59 +00:00
Edgar Simo
09f8ad29e2 Merging another last minute fix from force feedback branch (r4036)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403164
2008-08-25 10:14:21 +00:00
Sam Lantinga
b77fa81aa1 Merged last minute fixes from force feedback branch (r4031, r4033, r4034)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403162
2008-08-25 10:04:06 +00:00
Sam Lantinga
4fd9c25fe6 Final merge of Google Summer of Code 2008 work...
Force Feedback for SDL
by Edgar Simo, mentored by Ryan C. Gordon

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403159
2008-08-25 09:55:03 +00:00
Sam Lantinga
0aca811202 Fixed compile errors introduced during the merge refactoring
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403157
2008-08-25 08:50:37 +00:00
Sam Lantinga
6b4db38d91 Added missing X1/X2 button support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403156
2008-08-25 06:58:34 +00:00