Commit Graph

2552 Commits

Author SHA1 Message Date
Sam Lantinga
1dc9824e3d Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface() 2011-01-12 15:22:29 -08:00
Sam Lantinga
3e6f2fc27a Support the new 16-bit formats in SDL_MasksToPixelFormatEnum() 2011-01-12 15:21:12 -08:00
Sam Lantinga
be09e4e9a0 Added some missing pixel formats and SDL_GetPixelFormatName() 2011-01-12 14:53:23 -08:00
Sam Lantinga
307c1da714 Fill in the video mode with the correct screen format 2011-01-12 14:29:01 -08:00
Sam Lantinga
4bb49ad70f A bit of cleanup in the Android driver 2011-01-12 13:52:41 -08:00
Sam Lantinga
bac790d9b0 Added SDL errors to the Android log stream if DEBUG_ERROR is defined 2011-01-12 13:52:27 -08:00
Sam Lantinga
9c4a36d79e You can't change the resolution on some devices 2011-01-12 13:46:37 -08:00
Sam Lantinga
0e378c9dd3 Use a valid window when creating the default renderer 2011-01-12 13:38:10 -08:00
Sam Lantinga
bd19fe97f7 Fixed return value 2011-01-07 09:53:08 -08:00
Sam Lantinga
6da7a17174 Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf. 2011-01-06 16:11:21 -08:00
Sam Lantinga
c71d6c570a Fixed screen texture format on Android
I think this also fixes some of the red/blue channel swap bugs reported on iPhone.
2011-01-05 00:09:19 -08:00
Sam Lantinga
49a4522f6f Fixed 2D video on Android
There was a dummy renderer left in there which was overriding the OpenGL ES renderer.
2011-01-04 20:36:39 -08:00
Sam Lantinga
860a7d3309 Don't continually print stub message for testgles 2011-01-04 20:30:54 -08:00
Sam Lantinga
cead9cf66b The source rectangle isn't modified in SDL_UpperBlit 2011-01-04 10:19:24 -08:00
Sam Lantinga
5071d8ac2a Fixed crash on Windows XP 2011-01-03 14:39:41 -08:00
Sam Lantinga
288c15a3ee Fixed trying to create an XRender texture for YUV formats 2011-01-01 20:46:39 -08:00
Sam Lantinga
d44793d5c3 Final touches on renaming SDL_eventtouch to SDL_x11touch 2011-01-01 20:04:50 -08:00
Sam Lantinga
20e521a87a I am using SDL 1.3 on FreeBSD. I found two problems.
(1) SDL_atomic dummy version in SDL 1.3 is not used.
Because src/atomic/dummy/*.c are not used.

(2) Typo in src/joystick/bsd/SDL_sysjoystick.c.

Thanks,
IWATSUKI Hiroyuki
2011-01-01 19:50:50 -08:00
Sam Lantinga
3e250a4d82 Fixed restoring the desktop resolution when toggling fullscreen mode 2011-01-01 16:41:29 -08:00
Sam Lantinga
c096fd88d7 Fixed compiling on Android 2010-12-31 16:51:03 -08:00
Sam Lantinga
0ff5b782f8 Don't crash when resizing non-shaped windows 2010-12-31 08:50:06 -08:00
Sam Lantinga
1c8ea18dab Fixed compiling X11 touch interface 2010-12-30 13:21:39 -08:00
Sam Lantinga
f05ae15a46 Hopefully fix X11 compile error 2010-12-30 10:45:36 -08:00
Sam Lantinga
791c2402da Removed carriage returns 2010-12-29 15:23:54 -08:00
Sam Lantinga
d6eac2c481 Use the enumerated type for blend and scale mode instead of int
Renamed SDL_TextureScaleMode to SDL_ScaleMode
2010-12-12 15:19:05 -08:00
Sam Lantinga
b9c41e5891 Fixed touch events on Mac OS X 10.6 2010-12-02 11:56:23 -08:00
Sam Lantinga
191d2b4366 Removed support for 10.3.9
Fixed building on Mac OS X 10.5
2010-12-01 12:23:16 -08:00
Sam Lantinga
f45bb85f65 Renamed X11 touch files for consistency 2010-12-01 12:17:12 -08:00
Sam Lantinga
06ade62f5e Fixed massive stack memory usage in the gesture functions 2010-11-30 18:07:31 -08:00
Sam Lantinga
62f4908223 First pass at Windows multi-touch gesture support 2010-11-30 17:58:51 -08:00
Daniel Wyatt
09693e2339 Better horizontal candidate list rendering.
Added horzcandspacing constant to add space between horizontal candidates.
2010-11-28 22:30:16 -05:00
Jjgod Jiang
432054bc81 Fix right mouse event handling in Cocoa
NSView in Cocoa has a different event handling procedure for
right mouse events (rightMouseDown: etc.)
2010-05-09 12:58:58 +08:00
Daniel Wyatt
c48d97dccf Code style updates. 2010-11-23 20:29:45 -05:00
Daniel Wyatt
f366b3cc53 Windows candidate list support.
Candidate list should now be drawn and function normally.
Tested in XP and 7.
2010-11-23 17:46:47 -05:00
Daniel Wyatt
a26a0b3fa1 Add variables needed for win32 candidate list support. 2010-11-23 17:44:10 -05:00
Daniel Wyatt
125049c209 Add ITfCandidateListUIElement to SDL_msctf.h for MinGW. 2010-11-23 17:43:10 -05:00
Andreas Schiffler
92523c9d44 Fix and rename VS2010 project files, add tests to VS2010 solution, fix VS compiler warning 2010-11-19 21:51:33 -08:00
Daniel Wyatt
c81193ed30 Use SDL endian macros in libm.
This fixes problems (specifically with SDL_floor) for systems where __BYTE_ORDER is not defined.
2010-11-16 13:24:55 -05:00
Andreas Schiffler
b9e9c91a70 Fix incorrect shape include and add HAVE_ATAN and HAVE_ATAN2 for OSX builds.
--
user: Andreas Schiffler <aschiffler@ferzkopp.net>
branch 'default'
changed include/SDL_config_macosx.h
changed src/video/cocoa/SDL_cocoashape.m
2010-11-16 07:03:26 -08:00
Sam Lantinga
396c2626de This fixes some keyboard defs for Haiku.
From: François Revol <revol@free.fr>
Checked By: Scott McCreary <scottmc2@gmail.com>
2010-10-16 17:15:19 -07:00
Sam Lantinga
b361f7fac8 This fixes SDL_renderer_gl so that it builds with c89.
From: François Revol <revol@free.fr>
Checked By: Scott McCreary <scottmc2@gmail.com>
2010-10-16 17:14:04 -07:00
Sam Lantinga
52a339128c Removed debug output 2010-10-10 15:45:58 -07:00
Sam Lantinga
276bfeac6c Make the union nameless to reduce the complexity of the API.
(Are there any compilers still in use that don't support this?)
2010-09-29 21:13:52 -07:00
Sam Lantinga
7ead7acaef Minor cleanup in patches from Coursoud 2010-09-27 01:30:42 -07:00
Sam Lantinga
bf43df8ba5 Merged the Windows custom window system hooks into the union used by X11.
Added Cocoa custom window system hooks
2010-09-27 01:24:05 -07:00
Sam Lantinga
1f15b05e7e XDamageDestroy is called before use_damage is tested. This crashes on my
setup. The patch calls XDamageDestroy only when use_damage is true.

Kind regards,

André
2010-09-27 00:49:56 -07:00
Sam Lantinga
7298ad2a68 SDL_DestroyWindow is setting window->magic to NULL too early. -
window->magic is also checked in SDL_DestroyRenderer. All cleanup code
like freeing the renderer and textures is not executed.
The patch moves window_magic = NULL behind the SDL_DestroyRenderer call.

Kind regards,

André
2010-09-27 00:49:34 -07:00
Sam Lantinga
d55d7a51d7 Code will never reach SDL_SetTexturePalette since SDL_SetDisplayPalette
will fail if the display e.g. is RGB32 or RGB24. The patch will ignore
errors in SDL_SetDislayPalette.
This should also affect the opengl renderer on systems supporting
paletted textures - mine does not (NVIDIA).
With this patch the directfb drivers delivers the same results for
test_palette like the software renderer.

Kind regards,

André
2010-09-27 00:48:56 -07:00
Sam Lantinga
b9a2b25073 Fixed compiling with mingw32/64 2010-09-19 16:46:56 -07:00
Daniel Wyatt
ec7a164b1e Fixed all MinGW problems (except libraries not added to build yet).
Added SDL_msctf.h for MinGW.
Added a few casts to fix warnings on MinGW.
2010-09-19 16:19:22 -04:00