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
Sunny Sachanandani
4915ca0980
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
9684366030
Fix cleanup functions.
2010-07-21 18:38:40 +05:30
Sunny Sachanandani
23d259b82e
Fix X11_DisplayModeChanged.
2010-07-21 18:33:13 +05:30
Sunny Sachanandani
6ec0ef31c7
Get SDL_BLENDMODE_MOD to work! Tested on nvidia only ATM.
2010-07-21 17:54:31 +05:30
Sam Lantinga
6f5bba2745
Fixed multimedia keys
2010-07-21 00:11:56 -07:00
Sam Lantinga
b520d61908
Delete is indeed an unprintable character.
2010-07-21 00:00:05 -07:00
Sam Lantinga
3a9c617ff8
Fixed remapping the Delete key and detecting the keypad Delete key.
2010-07-20 23:59:16 -07:00
Sam Lantinga
0e59ffc802
Added support for keyboard repeat (only tested on Windows so far)
2010-07-20 23:25:24 -07:00
Eli Gottlieb
f9048e7257
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
871f32561d
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
cd1d53f11c
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
658b2fec59
Fixed X error when showing debug info about a deleted property
2010-07-19 23:29:45 -07:00
Sunny Sachanandani
69847c86ef
Implement support for setting texture scale mode.
2010-07-20 11:43:13 +05:30
Sunny Sachanandani
a2983659fb
Respect environment variables.
2010-07-19 21:02:49 +05:30
Sunny Sachanandani
4ded0f623c
Integrate XFixes and XDamage into the build system.
2010-07-19 20:05:53 +05:30
Sunny Sachanandani
7739189255
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
84a58d8f7c
Use XDamage to optimise drawing operations.
2010-07-19 17:46:37 +05:30
Eli Gottlieb
2d0aeb3f2e
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
e2dcaac803
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
60b401aef8
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
70ad6fd4e9
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
4922edee74
Added #define's for error codes returned from SDL shaped-window API.
2010-07-18 22:24:52 -04:00
Eli Gottlieb
68fccc096b
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
Eli Gottlieb
86f3a25266
Rewrote test program for shaped windows. It definitely displays recognizable pictures now, but the resizing and shaping functionality isn't behaving correctly, possibly due to a miscalculation of alpha values.
2010-07-18 21:31:22 -04:00
Eli Gottlieb
7e104c5469
Updated testeyes.c. It now shows some kind of gibberish Missingno-type picture somewhere on the screen and, possibly, hangs the window system. On the upside, the Missingno is definitely a non-rectangular window.
2010-07-18 15:15:05 -04:00
Eli Gottlieb
72dcc2f873
Added SDL_win32shape.h to version control. D'oh.
2010-07-18 14:47:04 -04:00
Sam Lantinga
e0676bd4c4
Fixed bug 1015
...
Don't set the WM_TRANSIENT_FOR property to an invalid value - delete it instead.
2010-07-18 11:37:26 -07:00
Sam Lantinga
21760bc6b2
RedHat patch: SDL-1.2.14-byteorder.patch
2010-07-18 11:23:34 -07:00
Sam Lantinga
5ae90a3bef
Fixed bug 1006
...
Get the GLX functions with glXGetProcAddress() when available.
2010-07-18 11:18:36 -07:00
Sam Lantinga
83d6407648
Fixed bug 993
...
GCC supports unnamed unions now. :)
2010-07-18 11:15:02 -07:00
Sam Lantinga
b93cbf4cbb
RedHat patch: SDL-1.2.14-audiodriver.patch
2010-07-18 11:13:12 -07:00
dewyatt
aa3be46cf7
Merge with main repo (mainly for non-printable character fix)
2010-07-18 13:48:23 -04:00
Sam Lantinga
bbf7027004
Better fix for bug 936
...
Check to for overruns before they happen instead of afterwards.
2010-07-18 10:26:46 -07:00
Sam Lantinga
ce200fdf85
Debian patch: 215_kfreebsd_gnu.diff
2010-07-18 08:12:28 -07:00
Sunny Sachanandani
e3cf0eb042
Resync tip to default. Using named branches is a bad idea.
2010-07-18 19:03:39 +05:30
Sunny Sachanandani
cddeec5ffa
Remove experimental cruft.
2010-07-18 18:45:30 +05:30
Sunny Sachanandani
c054518301
Major changes to drawing. Reverted back to core X11 functions due to regressions.
2010-07-18 18:27:38 +05:30
Sam Lantinga
8c93eb3a9f
Double-confirmed, that's not the pause scancode
2010-07-18 01:04:18 -07:00
Sam Lantinga
9f37dd980a
Added back in a little more debugging for the X11 keyboard code
2010-07-18 01:00:01 -07:00