Commit graph

5491 commits

Author SHA1 Message Date
Sam Lantinga
4a9eaa4c6e Missed a file in Frank's patch 2012-02-12 23:22:44 -05:00
Sam Lantinga
d78c4ac3ee Updated the .hgignore for the current set of test programs 2012-02-12 21:05:24 -05:00
Sam Lantinga
982b4b8c20 Updated Nintendo DS support
Frank Zago

This patch updates the DS port:
- do not use the now removed compat layer.
- integrate parts of libgl2D since I got permission from the author, and thus
removed an external dependancy,
- a few bugs fixes.

Now, the textures should be completely supported, except reading from them
which doesn't makes sense to have on the DS. Sound is still not supported.

If someone else wants to work on the missing pieces, feel free.
2012-02-12 21:04:01 -05:00
Sam Lantinga
9514b6a286 Fixed bug 1417 - Android_JNI_FileClose local reference bug
A better solution for automatic local reference management.
2012-02-12 20:57:32 -05:00
Sam Lantinga
6552e51a2b Fixed bug 1412 - Patch - Software renderer crash
Dimitris Zenios Date: 2012-02-06 15:12:37 GMT

Hi gus there is a bug when using software renderer and the window
surface gets destroyed (Fullscreen and back).The solution is easy
2012-02-07 19:34:24 -05:00
Ryan C. Gordon
3e4b380d2c Removed GLX_BUFFER_SIZE attribute; it doesn't do anything with GLX_RGBA. 2012-02-07 02:11:42 -05:00
Ryan C. Gordon
df8784cd61 Replaced some assert macros with SDL_assert. 2012-02-07 02:11:15 -05:00
Ryan C. Gordon
067b1ec8a2 Check for _STDINT_H in SDL_config_minimal.h 2012-02-07 01:26:00 -05:00
Sam Lantinga
84a5ad6d06 Updated the Android Java activity for SDL2 2012-02-04 16:39:52 -05:00
Sam Lantinga
777b9659e9 Updated VS2010 project for the new version.rc location - thanks to Rainer Deyke 2012-02-04 10:42:12 -05:00
Sam Lantinga
3ed5d99c40 Fixed bug 1410 - fatbuild.sh is broken
Martin Gerhardy 2012-02-03 23:04:45 PST

after the name change from SDL to SDL2 the fatbuild.sh got broken. The attached
patch should fix this.
2012-02-04 10:40:04 -05:00
Sam Lantinga
4c9a5c130f Fixed bug 1403 - Creating a window with resizable flags may crash
jordirovira 2012-01-28 12:07:39 PST

in SDL_x11window around 520:

    /* Setup the normal size hints */
    if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
        sizehints.min_width = sizehints.max_width = window->w;
        sizehints.min_height = sizehints.max_height = window->h;
        sizehints.flags = PMaxSize | PMinSize;
    }
    sizehints.x = window->x;
    sizehints.y = window->y;
    sizehints.flags |= USPosition;

the sizehints.flags member is not initizalised if it doesn't enter the
conditional. It is as easy as setting it to zero before the conditional.
2012-02-03 22:24:33 -05:00
Sam Lantinga
affa363396 Fixed OpenGL ES 1.1 on Android
From Gabriel Jacobo:
What I did notice is that calling
data->glGetIntegerv(GL_FRAMEBUFFER_BINDING_OES, &value); doesn't produce any
result in Android GLES1.1 if the active framebuffer is the default one, ie,
whatever is in value stays unmodified.
2012-01-31 21:03:35 -05:00
Sam Lantinga
c4c52635fb Fixed bug 1405 - README.android misses build instruction: copy SDL_config_android.h -> SDL_config.h 2012-01-31 20:55:17 -05:00
Sam Lantinga
37d3ab36d1 Switched the SDL 2 autoconf macro to AM_PATH_SDL2 2012-01-30 21:39:26 -05:00
Sam Lantinga
f917e29ad7 Fixed magenta texture on iOS with OpenGL ES 2.0 2012-01-30 20:56:25 -05:00
Sam Lantinga
ee38b15029 Updated Android Makefile for SDL2 2012-01-30 20:09:50 -05:00
Sam Lantinga
d74752d82f Added glGenFramebuffers() to the function pointer list 2012-01-28 14:53:23 -05:00
Sam Lantinga
114800d3e6 Fixed setting the orthographic projection when the viewport changes. 2012-01-28 14:05:48 -05:00
Tim Angus
effddab35f * On iOS, fix support for the case where [UIScreen scale] is not 1.0 (retina)
* Allow selection of non-retina modes on retina devices
2012-01-25 14:29:56 +00:00
Sam Lantinga
173c6abcd0 Sanity check the window width and height 2012-01-22 23:51:46 -05:00
Sam Lantinga
96c0686983 Successfully built an SDL 2.0 RPM 2012-01-22 23:36:59 -05:00
Sam Lantinga
7f5ba0ca08 Updated the README and removed the old graywin test 2012-01-22 22:30:27 -05:00
Sam Lantinga
ef9497a138 Removed old SDL 1.2 tests from the iOS test projects 2012-01-22 22:29:50 -05:00
Sam Lantinga
c43e4bf999 Fixed setting the window visibility on iOS and Android 2012-01-22 22:19:08 -05:00
Sam Lantinga
08e3824fa0 Removed old compat files from Visual Studio and Xcode projects 2012-01-22 22:09:29 -05:00
Sam Lantinga
aaf23fe8af Fixed loading textures when the window starts hidden.
The viewport automatically resets to the window size when you programmatically resize the window.
2012-01-22 21:46:06 -05:00
Sam Lantinga
f1b459aaf7 Have testspriteminimal use the new simple API 2012-01-22 19:47:33 -05:00
Sam Lantinga
39b2ae4a20 Added a convenience function SDL_CreateWindowAndRenderer() 2012-01-22 19:22:53 -05:00
Sam Lantinga
4f6d606c93 Re-added SDL_SWSURFACE, because it looks silly to always pass 0 to SDL_CreateRGBSurface() 2012-01-22 18:37:46 -05:00
Sam Lantinga
5ef4144446 Removed the SDL 1.2 compatibility API... we'll see how painful this is. 2012-01-22 18:11:41 -05:00
Sam Lantinga
cb74808ecb Switched the RPM spec file to SDL 2.0
--HG--
rename : SDL.spec.in => SDL2.spec.in
2012-01-22 17:50:35 -05:00
Sam Lantinga
f84b2f8c6d Removed unsupported Watcom files 2012-01-22 17:41:33 -05:00
Sam Lantinga
51019eddd0 BeOS is no longer a going concern. ;) 2012-01-22 17:33:44 -05:00
Sam Lantinga
136979d3b5 Removed unsupported Borland related files 2012-01-22 17:32:50 -05:00
Sam Lantinga
3ad2c65336 Removing some more references to SDL 1.3 2012-01-22 17:26:45 -05:00
Sam Lantinga
d71e0546a9 Updated to SDL 2.0, and SDL 2.0 can now be installed coexisting with SDL 1.2
--HG--
rename : sdl-config.in => sdl2-config.in
rename : sdl.m4 => sdl2.m4
rename : sdl.pc.in => sdl2.pc.in
2012-01-22 17:21:00 -05:00
Sam Lantinga
8d3c63045f You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag. 2012-01-22 01:29:26 -05:00
Sam Lantinga
0458fa488a Renamed SetTargetTexture() to SetRenderTarget() 2012-01-22 01:26:28 -05:00
Sam Lantinga
da686e5bd4 Reorganized the render target code, moving the viewport handling to the general code and adding software implementation. 2012-01-21 22:22:30 -05:00
Sam Lantinga
fb87e98b8a Sorted the source files 2012-01-21 22:14:38 -05:00
Sam Lantinga
f64b376d9a Cleaned up the iOS test project and added testscale and testrendertarget 2012-01-21 22:13:20 -05:00
Sam Lantinga
7eefd495d2 Added testscale and testrendertarget projects 2012-01-21 21:50:28 -05:00
Sam Lantinga
301928014c We've already crashed by this point if we don't have a renderer. The calling code should check this. 2012-01-21 18:30:50 -05:00
Sam Lantinga
d64668508c Added the correct version.rc to the Visual Studio build. 2012-01-21 12:10:14 -05:00
Sam Lantinga
23b96d3406 Added a renderer flag to expose whether a renderer supports render to texture. 2012-01-19 21:06:47 -05:00
Sam Lantinga
320c59b387 Fix for building with Visual Studio 2012-01-19 20:25:09 -05:00
Sam Lantinga
5546f5ad65 Switched back to configure generating SDL_config.h
It was very confusing to have configure generate an SDL_config.h and then not have it be used when building on Mac OS X or Windows.  I'll just have to remember to use SDL_config_windows.h when building official releases that are supposed to be ABI compatible with Visual Studio.

--HG--
rename : include/SDL_config_generated.h.in => include/SDL_config.h.in
2012-01-19 01:55:51 -05:00
Sam Lantinga
a49a88676f Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Thanks guys!
2012-01-18 22:45:49 -05:00
Sam Lantinga
2e70e7f3cb Fixed bug 1372 - OSX Window Maximize/Resize Doesn't Update Window Position
Alex Nankervis 2012-01-15 14:20:01 PST

SDL_cocoawindow.m, windowDidResize needs to also send a window move event.
Depending on the corner you resize a window from, or when maximizing a window,
the window position will change. Discovered this when creating a maximized
window and found that the window position was stuck at the un-maximized
window's value.

Diff with fix attached.
2012-01-18 22:22:54 -05:00