Commit Graph

1959 Commits

Author SHA1 Message Date
Sam Lantinga
bd908a682f Fixed bug #777
Implemented SDL_GetPlatform()
2009-09-26 10:32:14 +00:00
Sam Lantinga
497088d257 Fixed bug #766
Mason Wheeler      2009-07-06 14:29:47 PDT

This adds some missing error reporting for SDL_SelectRenderer, and cleans up the logic a little bit.
2009-09-26 10:22:35 +00:00
Sam Lantinga
9b2bca8c06 Fixed bug #765
Added SDL_SetError case for SDL_UNSUPPORTED
2009-09-26 10:19:19 +00:00
Sam Lantinga
d9b39c9a69 Fixed bug #764
Added better error checking from Mason Wheeler
2009-09-26 10:17:49 +00:00
Sam Lantinga
38c3f80d5f Fixed bug #761
Mason Wheeler      2009-07-05 09:28:33 PDT

This patch fixes two issues with SDL_CreateTextureFromSurface.

1.  If no renderer is available, the function will return 0 without calling
SDL_SetError. (It does this in other places as well, but it appears that in
these cases, SDL_SetError was already called by a previous function call.)
2.  Removal of a dead code block that checks for an impossible return value.
2009-09-26 10:13:44 +00:00
Sam Lantinga
8c5ed7b905 Fixed bug #734
Nicholas Phillips      2009-04-26 21:34:05 PDT

I am using x64 Linux (using Intel Core 2 DUO), and I have noticed that there is
an error in SDL_cpuinfo.c, function CPU_getCPUIDFeaturesExt for my platform.
2009-09-26 10:04:38 +00:00
Sam Lantinga
453bd99553 Fixed crash with right side up BMP files 2009-09-26 06:21:36 +00:00
Bob Pendleton
f84f69d047 fixed a spelling error in the documentation. 2009-09-25 19:26:21 +00:00
Bob Pendleton
7a2031a379 This version actaully should work on Windows. 2009-09-25 19:17:16 +00:00
Sam Lantinga
1764e75bcc Possibly fixed bug #601, definitely fixed a potential issue with threads
stopping and starting in rapid succession.
2009-09-23 06:37:27 +00:00
Bob Pendleton
10e2dbb79d oops 2009-09-21 22:25:14 +00:00
Bob Pendleton
ccf0c93d64 Should now compile on 32 bit linux and 64 bit linux 2009-09-21 22:23:41 +00:00
Sam Lantinga
6215039632 Fixed bug #570
SDL_SemWaitTimeout in src/thread/generic/SDL_syssem.c line 179 (SVN trunk):

--sem->count;

should be

if (retval == 0) {
    --sem->count;
}

Without this, sem->count will underflow on timeout effectively breaking the
semaphore. It appears that the implementation has been wrong since the initial
revision.
2009-09-21 07:35:06 +00:00
Sam Lantinga
7b286700e7 Fixed build on Mac OS X 10.4 2009-09-21 05:24:54 +00:00
Sam Lantinga
2bf654253f Fixed compatibility with SDL 1.2 pixel format (24 bits per pixel of color data with 4 bytes per pixel == 32 bpp) 2009-09-20 22:47:28 +00:00
Sam Lantinga
2d97efbd4d Removed outdated Atari support 2009-09-20 04:15:19 +00:00
Sam Lantinga
95c8f7a517 Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009 2009-09-19 13:29:40 +00:00
Sam Lantinga
ecd63ace78 I think this fixes the texture pixel alignment 2009-09-19 12:48:52 +00:00
Sam Lantinga
78130bd9c4 Removed outdated VGL support 2009-09-19 07:30:29 +00:00
Sam Lantinga
17fbad0010 Removed outdated wscons support 2009-09-19 07:28:59 +00:00
Sam Lantinga
cf54df8c3e Removed outdated Nano-X support 2009-09-19 07:26:51 +00:00
Sam Lantinga
fe586cb3f9 Removed outdated OS/2 support 2009-09-19 07:22:07 +00:00
Sam Lantinga
6bb854b1d4 Removed outdated Dreamcast support 2009-09-19 07:21:22 +00:00
Sam Lantinga
5bee043a89 Removed outdated OS/2 support 2009-09-19 06:43:45 +00:00
Sam Lantinga
e4cbb96720 Removed outdated iPodLinux support 2009-09-19 06:24:07 +00:00
Sam Lantinga
cd1e07e762 testsprite2 should be pixel correct on Direct3D now. 2009-09-19 05:47:54 +00:00
Sam Lantinga
1ef102a99f Fixed bug #783
Fixed coordinate positioning with OpenGL renderer, and added a test case
2009-09-19 05:12:26 +00:00
Sam Lantinga
24e92089ad Stefan Ullinger
Hi,

so here we go: GL_LINE_SMOOTH bad for business! ;)

I checked the code within SDL_renderer_gl.c / GL_CreateRenderer(..)
and have found the reason for blurred lines when using OpenGL.
I have attached 2 images here.
I don't know whether this has to be changed and I don't know if there
is an option to turn it off/on...just wanted to say that with GL_LINE_SMOOTH
enabled there is a difference when rendering with opengl compared to directx.
2009-09-19 04:43:41 +00:00
Bob Pendleton
9861510378 The new, cleaner, version of the atomic operations. The dummy code is what you should start working with to port atomic ops.
The linux code appears to be complete and *should* be the base of all Unix and GCC based versions. The macosx and win32 versions
are currently just copies of the dummy code. I will begin working on the windows version as soon as this check in is done. I
need someone to work on the Mac OS X version.

I'm afraid that this check in will break QNX (Sorry!)
2009-09-17 20:35:12 +00:00
Sam Lantinga
8bc4d1a94e Kenneth Bull to SDL
I noticed in trunk/SDL/src/video/win32/SDL_win32events.c, in this code here...

... if the device handle isn't found in mice[], which it won't be if
the mouse was plugged in after SDL_Init, then you end up with an
uninitialized value in index, which is then passed to various
SDL_SendMouse* functions.
2009-09-07 16:04:44 +00:00
Sam Lantinga
30ebf925f0 Merged Edgar's code changes from Google Summer of Code 2009 2009-09-07 05:06:34 +00:00
Sam Lantinga
36d2461292 Merged Martin's code changes from Google Summer of Code 2009 2009-09-07 04:51:29 +00:00
Sam Lantinga
eb0575b20a Fixed bug where minimized windows get zero width/height 2009-09-06 15:04:38 +00:00
Sam Lantinga
b6ec478790 Fixed compiling on 64-bit Windows 2009-09-06 04:40:54 +00:00
Sam Lantinga
b856e71f8d Fixed issues building 64-bit Windows binary 2009-09-05 23:37:35 +00:00
Sam Lantinga
76d691c292 Added 64-bit architectures to the fat build script 2009-09-05 10:39:18 +00:00
Sam Lantinga
ed3c5aa525 From: Jjgod Jiang <gzjjgod@gmail.com>
Date: Sat, 5 Sep 2009 17:32:28 +0800

Replace old Keyboard Layout APIs with new Text Input Sources APIs for 10.{5,6}
2009-09-05 09:55:25 +00:00
Sam Lantinga
154e3b6ca9 From: Jjgod Jiang <gzjjgod@gmail.com>
Date: Sat, 5 Sep 2009 17:27:07 +0800

Disable NSScreen setFrame: hack in 10.6 since it no longer work
2009-09-05 09:54:45 +00:00
Sam Lantinga
2a96e84434 CD-ROM support is so passé :) 2009-09-05 09:11:03 +00:00
Sam Lantinga
33472500be Bye bye SoundManager, you are officially obsolete... 2009-09-05 09:03:35 +00:00
Sam Lantinga
2105c37ec0 Fixed a few issues compiling with Mac OS X 10.6
Unfortunately the audio and cdrom systems do not build at all, and if you
disable those, SDL still fails to link with these errors:

Undefined symbols:
  "_OBJC_IVAR_$_NSScreen._frame", referenced from:
      -[NSScreen(NSScreenAccess) setFrame:] in SDL_cocoamodes.o
  "_KLGetKeyboardLayoutProperty", referenced from:
      _UpdateKeymap in SDL_cocoakeyboard.o
      _UpdateKeymap in SDL_cocoakeyboard.o
  "_KLGetCurrentKeyboardLayout", referenced from:
      _UpdateKeymap in SDL_cocoakeyboard.o
ld: symbol(s) not found
2009-09-05 07:33:54 +00:00
Sam Lantinga
2716046197 Fix suggested by Bob 2009-08-20 04:40:02 +00:00
Sam Lantinga
63ef94fcf3 David Carre to Sam
When i call the "SDL_Quit()" function, it call the func "SDL_QuitSubSystem(SDL_INIT_EVERYTHING)", which call the "SDL_VideoQuit()" function.

It's where i'm lost, this function "SDL_VideoQuit()" will recall the "SDL_Quit()" function (i don't find where it is called), which in turn recall the "SDL_QuitSubSystem(SDL_INIT_EVERYTHING)", which in turn recall "SDL_VideoQuit()", which cause a "double free" seg fault since it has been already called.

I have set the num_displays to 0 instead of 1, so it wont free it twice in the videoquit function loop.
2009-08-18 03:26:53 +00:00
Bob Pendleton
e80feea87f I forgot to copy the dummy version to macosx. 2009-08-11 21:15:18 +00:00
Sam Lantinga
91f3686c2e David Carre to Sam
Hello sam, me again.

I'v fixed another bug in the pandora code, it's on the no-X videodriver, i forgot to add some code to destroy the window so it was impossible to reload SDL inside the same application (eglTerminate).

You'll find the svn diff attached.

See you,
David.
2009-08-11 13:45:01 +00:00
Edgar Simo
2ca41a8224 Patch by Janosch Gräf <janosch.graef@gmx.net>
I just noticed that there are rarely error messages and added some.
2009-08-05 16:31:49 +00:00
Couriersud
df5d56827d Fixed compiling SDL_fsaudio.c against fusionsound 1.0.0 2009-08-03 18:07:31 +00:00
Sam Lantinga
fe959d8e24 Fixed type size for test_bit() 2009-08-02 20:45:11 +00:00
Sam Lantinga
b457fdca75 Removed arbitrary window size limitation 2009-08-02 14:27:48 +00:00
Sam Lantinga
8b87364708 Patch from David Carre:
I fixed a bug in the "SDL_DestroyRenderer()" function in the pandora x11 renderer (in fact the bug was in the "X11_GLES_MakeCurrent()" function) that was causing a crash when exiting SDL.

There was a problem while terminating the x11 egl window, that was preventing to quit/close SDL/SDL-window then reload SDL/SDL-window inside the same application.
2009-07-30 14:53:57 +00:00