Commit Graph

5003 Commits

Author SHA1 Message Date
Sam Lantinga
c36fe02431 Fixed the code so we receive Cocoa touch events 2010-07-28 23:32:13 -07:00
Sam Lantinga
4b3a7e0386 For consistency, swapped line order 2010-07-28 22:24:13 -07:00
Sam Lantinga
f22109ed40 Added dynamic loading of XFixes and XDamage on Mac OS X 2010-07-28 22:22:08 -07:00
Eli Gottlieb
dee5233291 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
e04609dd3a Oops! 2010-07-28 15:35:18 +05:30
Sunny Sachanandani
c2baeb311e 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
ad5bb9b296 Set the default XRender filter to "fast". testoverlay2 works now. 2010-07-28 15:13:16 +05:30
Sam Lantinga
17fd339bb6 Added missing pixel format 2010-07-28 01:32:39 -07:00
Sam Lantinga
dbc95711f2 Fixed compiling without XRender enabled 2010-07-28 01:14:48 -07:00
Sam Lantinga
dee37ad73f Moved brace to the beginning of the line for the beginning of functions 2010-07-28 01:05:58 -07:00
Sam Lantinga
617542daf6 Merged Sunny's XRender changes from SDL-gsoc2010_xrender 2010-07-28 00:54:23 -07:00
Sunny Sachanandani
f8e9cd32ad Add some comments. 2010-07-28 13:08:14 +05:30
Sunny Sachanandani
2e3071de90 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
6e04d3f626 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
92dc116dcd More joystick stuff 2010-07-27 21:58:18 +02:00
Paul Hunkin
eb38d6aa71 - 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
e8bbccf237 Added accelerometer 'joystick' 2010-07-27 21:20:17 +02:00
jimtla
9a936a4317 Added cocoatouch.h 2010-07-27 18:14:09 +04:00
Paul Hunkin
daa451a473 Oops, I wasn't using pthreads. Fixed so we can have mutexes and stuff 2010-07-27 15:23:09 +02:00
Paul Hunkin
10203b606f Updated test app to init the sound system 2010-07-27 11:35:06 +02:00
Paul Hunkin
262828a8ab Added stub android sound system 2010-07-27 11:34:43 +02:00
Paul Hunkin
db6bbd35de OK, /actually/ fixed the nativeQuit() crash this time 2010-07-27 11:02:07 +02:00
Paul Hunkin
559937b746 Added resize hander stub and initial screen size setter 2010-07-27 10:49:11 +02:00
Paul Hunkin
816e52175c 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
8461c61e8a - Modified build system
- Initial support for touch and key events
2010-07-27 09:58:17 +02:00
Eli Gottlieb
6d3fa3eec4 Added shapes folder to hg. 2010-07-26 21:49:32 -04:00
Eli Gottlieb
5e4e70b2bf Working on Cocoa implementation. 2010-07-26 21:48:53 -04:00
jimtla
e1dbf710f4 Finished (untested) OS X code. 2010-07-27 05:21:24 +04:00
Eli Gottlieb
1439b491f6 OK, it appears that dramatic hacks are not necessary to make Cocoa work... 2010-07-26 20:41:45 -04:00
Eli Gottlieb
1ed6481157 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
74f3e6d440 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
487bc0322e 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
2826ce67af Added preliminary touch code to SDL_cocoakeyboard.m 2010-07-24 22:28:38 +04:00
Sam Lantinga
823150217e 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
0b10a1cb52 More work on color-key mode. 2010-07-23 01:48:42 -04:00
Sam Lantinga
1aea85be53 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
5416c894f4 Added color-key mode and redid the code to work with it. 2010-07-22 23:11:01 -04:00
Sunny Sachanandani
1d826dcfad Fixed drawing rectangles. X is evil! 2010-07-22 16:00:18 +05:30
Sunny Sachanandani
29c1c990d1 Code cleanup. 2010-07-22 12:08:33 +05:30
Sunny Sachanandani
5e60ceaa97 Remove debugging code. 2010-07-22 11:55:32 +05:30
Sunny Sachanandani
2fcfc81241 Advertise support for all supported texture formats. 2010-07-22 10:53:41 +05:30
Sam Lantinga
0d26fd147e Fixed memory corruption on AMD64 2010-07-21 21:53:41 -07:00
Sam Lantinga
bb3f9614ec Fixed key repeat detection on X11, and simplified the code for everyone else. 2010-07-21 21:47:12 -07:00
jimtla
01ca66c30f Fixed x11 compile bugs. 2010-07-22 08:12:28 +04:00
Sunny Sachanandani
47341645ba Advertise support for blending modes and scaling modes in the render driver. 2010-07-21 23:18:53 +05:30
Sunny Sachanandani
1b6afb3701 Make the SW renderer work properly by fixing support for textures with no alpha channels. 2010-07-21 23:08:09 +05:30
Sunny Sachanandani
96abad3e25 Fix cleanup functions. 2010-07-21 18:38:40 +05:30
Sunny Sachanandani
74aebea86f Fix X11_DisplayModeChanged. 2010-07-21 18:33:13 +05:30
Sunny Sachanandani
b478f42ed4 Get SDL_BLENDMODE_MOD to work! Tested on nvidia only ATM. 2010-07-21 17:54:31 +05:30
Sam Lantinga
d364ea2300 Fixed multimedia keys 2010-07-21 00:11:56 -07:00