Commit Graph

3412 Commits

Author SHA1 Message Date
Sunny Sachanandani
8b6f49c03b Added some comments. 2010-08-02 17:14:09 +05:30
Sunny Sachanandani
99444c9c81 Fixed a huge bug with texture scaling. 2010-08-02 11:13:40 +05:30
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
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
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
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
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
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
Sam Lantinga
4eb171d972 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
d6cb212829 RedHat patch: SDL-1.2.14-byteorder.patch 2010-07-18 11:23:34 -07:00
Sam Lantinga
21a2822b79 Fixed bug 1006
Get the GLX functions with glXGetProcAddress() when available.
2010-07-18 11:18:36 -07:00
Sam Lantinga
b0a9c9d932 Fixed bug 993
GCC supports unnamed unions now. :)
2010-07-18 11:15:02 -07:00
Sam Lantinga
7863050195 RedHat patch: SDL-1.2.14-audiodriver.patch 2010-07-18 11:13:12 -07:00
Sam Lantinga
99e65988f0 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
45bccbbc5c Debian patch: 215_kfreebsd_gnu.diff 2010-07-18 08:12:28 -07:00
Sunny Sachanandani
72f6c24026 Resync tip to default. Using named branches is a bad idea. 2010-07-18 19:03:39 +05:30
Sunny Sachanandani
1662c33408 Remove experimental cruft. 2010-07-18 18:45:30 +05:30
Sunny Sachanandani
0d8e74ac5a Major changes to drawing. Reverted back to core X11 functions due to regressions. 2010-07-18 18:27:38 +05:30
Sam Lantinga
f2b5f50026 Double-confirmed, that's not the pause scancode 2010-07-18 01:04:18 -07:00
Sam Lantinga
d49a84bb85 Added back in a little more debugging for the X11 keyboard code 2010-07-18 01:00:01 -07:00
Sam Lantinga
93aee3a1f7 Don't put a keysym in there! Shame on you! :) 2010-07-18 00:54:26 -07:00