Commit Graph

11015 Commits

Author SHA1 Message Date
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
Sam Lantinga
ab0eee8569 Delete is indeed an unprintable character. 2010-07-21 00:00:05 -07:00
Sam Lantinga
7d2743e5f6 Fixed remapping the Delete key and detecting the keypad Delete key. 2010-07-20 23:59:16 -07:00
Sam Lantinga
741880b4dc Added support for keyboard repeat (only tested on Windows so far) 2010-07-20 23:25:24 -07:00
Eli Gottlieb
e58ba0a462 Reapplied Win32 make-it-build patch. What's going on? Still get rendering artifacts when testing on x11, have literally no idea why. 2010-07-20 12:42:43 -04:00
Sam Lantinga
2e7d9d5086 Fixed X11 error when running under window managers that don't support the _NET_SUPPORTING_WM_CHECK protocol. 2010-07-20 00:57:01 -07:00
Sam Lantinga
eee5db77ce Applied the same logic as the fix for bug 894.
Anytime we enter the window, we gain the mouse focus.  If we leave the window because of a normal LeaveNotify, then we lose mouse focus.
2010-07-20 00:05:32 -07:00
Sam Lantinga
b5005f3776 Fixed X error when showing debug info about a deleted property 2010-07-19 23:29:45 -07:00
Sunny Sachanandani
bed6ddfa00 Implement support for setting texture scale mode. 2010-07-20 11:43:13 +05:30
Sunny Sachanandani
b496cf6550 Respect environment variables. 2010-07-19 21:02:49 +05:30
Sunny Sachanandani
51b997ebad Integrate XFixes and XDamage into the build system. 2010-07-19 20:05:53 +05:30
Sunny Sachanandani
c19650cfdf Massive speed-up. Fixed the format that is set for the renderer. Included runtime checks for XDamage. 2010-07-19 18:57:02 +05:30
Sunny Sachanandani
93948935c4 Use XDamage to optimise drawing operations. 2010-07-19 17:46:37 +05:30
Eli Gottlieb
a765c590a3 Put the render loop back in its right place, but with delaying functionality to keep it down to roughly 60fps, not eating up all the X11 time. 2010-07-19 00:24:02 -04:00
Eli Gottlieb
725ae8e50b Boxed up the rendering loop and turned it into a redraw/update function. This makes things way more responsive, usable again. 2010-07-18 23:51:47 -04:00
Eli Gottlieb
8a85a825dc Added code to make testshape switch shapes on keystrokes and exit on an ESC keystroke. 2010-07-18 23:36:39 -04:00
Eli Gottlieb
d85a315678 Minor bugfixes. testshape now draws a shaped window with bizarre, pixellated gashes of transparency across it, and in doing so seems to hog a system resource and slow the rest of the video system down. 2010-07-18 23:05:40 -04:00
Eli Gottlieb
f35e180363 Added #define's for error codes returned from SDL shaped-window API. 2010-07-18 22:24:52 -04:00
Eli Gottlieb
4cae3679e9 Same place as before, but optimizing a bit to try to isolate the spot in the program that locks things up. 2010-07-18 22:17:52 -04:00