Commit graph

3708 commits

Author SHA1 Message Date
Sam Lantinga
7685a1892c Documentation updates 2010-07-29 20:24:05 -07:00
Eli Gottlieb
d5e0ecb0f0 Added Andreas's patch to fix my silly C++-style errors. 2010-07-29 22:57:39 -04:00
Eli Gottlieb
980298285c Added the header to the repo. Oops. 2010-07-29 12:49:17 -04:00
Jim Grandpre
6ed8759bcc Added better logging 2010-07-29 12:26:59 -04:00
Jim Grandpre
a4a0897a1d Prevented SDL_SendDown from sending on nonexistent touch devices. 2010-07-29 12:24:34 -04:00
Sam Lantinga
73db548db1 Fixed the code so we receive Cocoa touch events 2010-07-28 23:32:13 -07:00
Sam Lantinga
4f5f86477a For consistency, swapped line order 2010-07-28 22:24:13 -07:00
Sam Lantinga
dc048bcb73 Added dynamic loading of XFixes and XDamage on Mac OS X 2010-07-28 22:22:08 -07:00
Eli Gottlieb
9a3f51f3c5 Wrote out the system for breaking shape-masks into quad-trees of rectangles, and added code to conglomerate those quad-trees of rectangles into regions for setting shapes under Win32. 2010-07-28 23:35:24 -04:00
Sunny Sachanandani
dd3e79b2df Oops! 2010-07-28 15:35:18 +05:30
Sunny Sachanandani
09828c4620 Depend on XRender version 0.10 or above and XFixes version 2.0 or above. Moved these dependency checks into CheckXRender() and CheckXFixes(). 2010-07-28 15:33:28 +05:30
Sunny Sachanandani
1771e1fe4a Set the default XRender filter to "fast". testoverlay2 works now. 2010-07-28 15:13:16 +05:30
Sam Lantinga
a57835d4af Added missing pixel format 2010-07-28 01:32:39 -07:00
Sam Lantinga
0a74c700e4 Fixed compiling without XRender enabled 2010-07-28 01:14:48 -07:00
Sam Lantinga
a8d497359f Moved brace to the beginning of the line for the beginning of functions 2010-07-28 01:05:58 -07:00
Sam Lantinga
d8e7cebd11 Merged Sunny's XRender changes from SDL-gsoc2010_xrender 2010-07-28 00:54:23 -07:00
Sunny Sachanandani
b277b530a1 Add some comments. 2010-07-28 13:08:14 +05:30
Sunny Sachanandani
457eb7e007 Add support for texture modulation (both color and alpha). testsprite2 works now with --cyclealpha and --cyclecolor. 2010-07-28 11:56:17 +05:30
Sam Lantinga
8d14ec12cc Andrey A.
I made a video driver GAPI/RAW for WinCE (SDL-1.3).
RAW mode has a priority, and also, GAPI mode works with environment
"SDL_VIDEO_RENDERER=gapi" and for RAW mode "SDL_VIDEO_RENDERER=raw".

I checked the work on the screens of VGA, WVGA, QVGA, WQVGA, HVGA,
 + tested all modes with WindowsMobile Emulator.

Also, correctly draws the pointer position and the scale of the pointer
for VGA/WVGA modes,
correctly draws top left position for DM orientation screen, and
portrait/landscape/square geometry the screen also correct.

Also, I added a small fix for GDI fullscreen mode.

Patch for latest revision SDL-1.3 in an attachment.
Also added small path for mingw32ce build.
2010-07-27 21:31:28 -07:00
Paul Hunkin
9c7acc6623 More joystick stuff 2010-07-27 21:58:18 +02:00
Paul Hunkin
ef47472280 - Cleaned up a bunch of code
- Added 'feature' enable/disable so we're not running accel/sound/whatever in Java when we don't need to be
- More work on the sound system. But it still crashes pretty horribly, not sure why yet.
2010-07-27 21:21:24 +02:00
Paul Hunkin
9ac4bd2a17 Added accelerometer 'joystick' 2010-07-27 21:20:17 +02:00
jimtla
dafed2a5ce Added cocoatouch.h 2010-07-27 18:14:09 +04:00
Paul Hunkin
9aea3f99a7 Oops, I wasn't using pthreads. Fixed so we can have mutexes and stuff 2010-07-27 15:23:09 +02:00
Paul Hunkin
daaa0b0414 Updated test app to init the sound system 2010-07-27 11:35:06 +02:00
Paul Hunkin
56e126ff14 Added stub android sound system 2010-07-27 11:34:43 +02:00
Paul Hunkin
e0c98826af OK, /actually/ fixed the nativeQuit() crash this time 2010-07-27 11:02:07 +02:00
Paul Hunkin
088b758125 Added resize hander stub and initial screen size setter 2010-07-27 10:49:11 +02:00
Paul Hunkin
27d80262c2 Shut down the C application properly on quit instead of crashing in the most horrible way possible 2010-07-27 10:20:22 +02:00
Paul Hunkin
d42b7d3970 - Modified build system
- Initial support for touch and key events

--HG--
rename : build-scripts/acc.sh => android/scripts/acc.sh
rename : build-scripts/ald.sh => android/scripts/ald.sh
2010-07-27 09:58:17 +02:00
Eli Gottlieb
3433f10279 Added shapes folder to hg. 2010-07-26 21:49:32 -04:00
Eli Gottlieb
807e0c5cca Working on Cocoa implementation. 2010-07-26 21:48:53 -04:00
jimtla
926bfd4056 Finished (untested) OS X code. 2010-07-27 05:21:24 +04:00
Eli Gottlieb
01cddf42c7 OK, it appears that dramatic hacks are not necessary to make Cocoa work... 2010-07-26 20:41:45 -04:00
Eli Gottlieb
155833dd81 Rejiggering the way shaped windows are created as preparation for OS X implementation. Fixed overdrive bug in test program that appears to have been introduced by someone other than myself. 2010-07-26 17:27:04 -04:00
dewyatt
cae6f1376d Correctly draw cursor based on position.
Had to add UTF-8 functions utf8_length, utf8_next, utf8_advance.
2010-07-25 13:17:31 -04:00
dewyatt
1d79a9b5d8 Changed markedText to have its own storage to resolve multiple bugs.
Changed an odd strcpy to a more appropriate strcat.
2010-07-24 20:48:50 -04:00
jimtla
f2cbd1683a Added preliminary touch code to SDL_cocoakeyboard.m 2010-07-24 22:28:38 +04:00
Sam Lantinga
4e19d730a1 Couriersud to Sam
I have done some quick changes and at least the code compiles again. It
also works with a number of the test executables with the DFB X11
backend. I hope to find time to get SDLMAME to work with latest SDL1.3
(i.e. rip out multi-keyboard, multi-mice & cursor support) next week to
test it further.

Regards,

André
2010-07-23 21:33:00 -07:00
Eli Gottlieb
6cc1b97fc5 More work on color-key mode. 2010-07-23 01:48:42 -04:00
Sam Lantinga
b0a24ac840 Daniel Wyatt to slouken
I also found a bug in the non-printable character fix.
In SDL_keyboard.c:SDL_SendKeyboardText:
    if (*text < ' ' || *text == 127) {
needs to be:
    if ((unsigned char)*text < ' ' || *text == 127) {

Otherwise bytes >= 128 will be considered non-printable.
2010-07-22 22:09:04 -07:00
Eli Gottlieb
abb4ad73c5 Added color-key mode and redid the code to work with it. 2010-07-22 23:11:01 -04:00
Sunny Sachanandani
fc86a602cf Fixed drawing rectangles. X is evil! 2010-07-22 16:00:18 +05:30
Sunny Sachanandani
d0ac065342 Code cleanup. 2010-07-22 12:08:33 +05:30
Sunny Sachanandani
30e8d22c80 Remove debugging code. 2010-07-22 11:55:32 +05:30
Sunny Sachanandani
f517fdfa39 Advertise support for all supported texture formats. 2010-07-22 10:53:41 +05:30
Sam Lantinga
106aea6ed1 Fixed memory corruption on AMD64 2010-07-21 21:53:41 -07:00
Sam Lantinga
5d2b7ba68b Fixed key repeat detection on X11, and simplified the code for everyone else. 2010-07-21 21:47:12 -07:00
jimtla
c1e63cf801 Fixed x11 compile bugs. 2010-07-22 08:12:28 +04:00
Sunny Sachanandani
5bb07d5c28 Advertise support for blending modes and scaling modes in the render driver. 2010-07-21 23:18:53 +05:30