Commit Graph

2508 Commits

Author SHA1 Message Date
Sam Lantinga
bf43df8ba5 Merged the Windows custom window system hooks into the union used by X11.
Added Cocoa custom window system hooks
2010-09-27 01:24:05 -07:00
Sam Lantinga
1f15b05e7e XDamageDestroy is called before use_damage is tested. This crashes on my
setup. The patch calls XDamageDestroy only when use_damage is true.

Kind regards,

André
2010-09-27 00:49:56 -07:00
Sam Lantinga
7298ad2a68 SDL_DestroyWindow is setting window->magic to NULL too early. -
window->magic is also checked in SDL_DestroyRenderer. All cleanup code
like freeing the renderer and textures is not executed.
The patch moves window_magic = NULL behind the SDL_DestroyRenderer call.

Kind regards,

André
2010-09-27 00:49:34 -07:00
Sam Lantinga
d55d7a51d7 Code will never reach SDL_SetTexturePalette since SDL_SetDisplayPalette
will fail if the display e.g. is RGB32 or RGB24. The patch will ignore
errors in SDL_SetDislayPalette.
This should also affect the opengl renderer on systems supporting
paletted textures - mine does not (NVIDIA).
With this patch the directfb drivers delivers the same results for
test_palette like the software renderer.

Kind regards,

André
2010-09-27 00:48:56 -07:00
Sam Lantinga
b9a2b25073 Fixed compiling with mingw32/64 2010-09-19 16:46:56 -07:00
Daniel Wyatt
ec7a164b1e Fixed all MinGW problems (except libraries not added to build yet).
Added SDL_msctf.h for MinGW.
Added a few casts to fix warnings on MinGW.
2010-09-19 16:19:22 -04:00
Daniel Wyatt
afad7fe429 Added imm.h include, will be needed on MinGW.
Changed comment to c-style and removed some end-of-line whitespace.
2010-09-19 14:41:18 -04:00
Sam Lantinga
6fb77a6212 Fixed crash on systems that don't have StopTextInput 2010-09-18 18:31:01 -07:00
Sam Lantinga
0bfe09c37d Fixed crashing loading 48KHz audio, contributed by Terry Welsh 2010-09-18 18:15:08 -07:00
Andreas Schiffler
04a527d771 - added directx include path to VS2008 solution
- updated shape vcproj and add it to VS2008 solution
- minor changes (i.e. typecasting) to get rid of compiler warnings in VS
2010-09-15 22:15:47 -07:00
dewyatt
0723b1ef98 Ensure compositions are committed when keyboard focus changes.
There may be a better way to do this.
2010-09-15 00:28:19 -04:00
Sam Lantinga
256b2c3990 Compiling in atan()/atan2() implementation on Visual Studio 2008. 2010-08-29 16:55:58 -07:00
Sam Lantinga
7a7d43524f Added atan implementation from uClibc 2010-08-29 16:51:48 -07:00
Sam Lantinga
62a1d95e50 Whoops, return "" even if the window is invalid. 2010-08-29 16:28:04 -07:00
Sam Lantinga
92a7dec92f The title is stored internally as NULL if it's empty, and returned as "" 2010-08-29 16:26:35 -07:00
Sam Lantinga
317cd0515f Added atan2 implementation from uClibc 2010-08-29 16:05:34 -07:00
Sam Lantinga
d343754786 Fixed compiling with Visual Studio 2008 2010-08-29 14:22:22 -07:00
Sam Lantinga
39db467ca6 While you can actually write to the error buffer, conceptually it's read-only. 2010-08-29 12:00:09 -07:00
Andreas Schiffler
b0d0e9f2f0 Update VS2010 project to add new files; update new files so code builds on Win32/Win64 2010-08-23 23:44:28 -07:00
Sam Lantinga
b7c5d88e6a Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows 2010-08-22 13:45:56 -07:00
Sam Lantinga
d4d88abae0 Merged Daniel's Google Summer of Code work from SDL-gsoc2010_IME 2010-08-22 12:39:27 -07:00
Sam Lantinga
4afe9b8f26 Cleanup from the Android commit 2010-08-22 12:35:34 -07:00
Sam Lantinga
4df9989dd4 Removed spurious carriage returns 2010-08-22 12:34:31 -07:00
Sam Lantinga
ac80a80f6a Merged Paul's Google Summer of Code work from SDL-gsoc2010_android 2010-08-22 12:23:55 -07:00
Sam Lantinga
7f6ad8e572 Merged Jim's Google Summer of Code work from SDL-gsoc2010_gesture 2010-08-22 12:07:55 -07:00
egottlieb
6d0fb58d50 Create all shaped windows at -1000,-1000 and save the real coordinates. 2010-08-17 01:11:11 -04:00
egottlieb
b6a4181ee9 Recoded Cocoa code that got erased by... failure to commit? Merge? Eh. 2010-08-16 14:01:00 -04:00
egottlieb
b09f1ba43d Moved the +1 to mostly eliminate the visual artifact. 2010-08-16 10:48:54 -04:00
egottlieb
91ba94a87c Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end. 2010-08-16 01:17:19 -04:00
Eli Gottlieb
ce14844102 Set flag bits *exactly* as Andreas showed me in his screenshot. This shouldn't be different, but what do I know about C's order of operations? 2010-08-15 23:57:50 -04:00
egottlieb
2c4b1f57f7 Removed useless debugging code. 2010-08-15 22:03:38 -04:00
egottlieb
d7e4ccead0 Added hiding-as-positioning trick and finally fixed flags. 2010-08-15 21:46:04 -04:00
Eli Gottlieb
4246295677 Changed flags and positioning (for the fake-hiding) as Andreas recommended. 2010-08-15 18:52:57 -04:00
Jim Grandpre
e9d12a479a Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture 2010-08-15 00:36:28 -04:00
egottlieb
502e27f1c8 Mostly seem to have fixed SDL_CalculateShapeTree. Mostly. There still seem to be some rendering artifacts, stepping effects, and such on Windows -- which indicates subtle logic errors in SDL_CalculateShapeTree().
Oh well, back into the salt mine.
2010-08-14 20:29:51 -04:00
egottlieb
1dac65bd3a Finally got the Win32 API code for shaping to work! Just need to fix SDL_CalculateShapeTree() now! 2010-08-14 16:14:36 -04:00
Jim Grandpre
bb00fc114d Fixed bugs related to keyboard handling in gestureSDLTest. Fixed gesture code (dynamic memory allocation). Cleaned up gesture and test code. 2010-08-13 23:08:32 -04:00
Paul Hunkin
2384244845 Working on the sound system 2010-08-14 12:35:21 +12:00
Sam Lantinga
6b5ac4fefa Fixed so the origin of the touch events is the upper left. 2010-08-13 17:05:06 -07:00
Eli Gottlieb
c02cbc3cbc Added SDL_SetWindowPosition() call to SDL_SetWindowShape(), going to see what this does on Windows. 2010-08-12 18:17:15 -04:00
Jjgod Jiang
885a15db6b Fix for deleting the last uncommit character 2010-08-12 16:00:47 +02:00
Sam Lantinga
40a17f8980 Couriersud to Sam
Hi Sam,

20100815_1.diff contains updates for the directfb driver:

- more documentation, mainly on software OpenGL in README.directfb
- Revised error handling leading to leaner code
- Improved/fixed OpenGL handling of multiple contexts.
- Made the built-in simple window manager handle OpenGL windows.
- Rewrote pixelformat mapping - this was quite ugly before.

Well, all software GL, but working :-)
2010-08-16 09:04:55 -07:00
Eli Gottlieb
12b0fa8c5e Fixed a bug in X11 shaping that refused to use color-key mode. 2010-08-10 16:10:26 -04:00
Eli Gottlieb
84161d16a6 Fixing bugs introduced into X11 shaping implementation by merge. 2010-08-10 15:45:59 -04:00
egottlieb
f3f20e2df1 Switched over to poly-polygon region building and shape-tree traversal for Win32. 2010-08-10 15:39:46 -04:00
Eli Gottlieb
b60c431a34 Fixed formatting of SDL_shape.c post-merge again. 2010-08-09 20:32:15 -04:00
Eli Gottlieb
bad338e4af Fixed overwriting of SDL_shape.c in merge. 2010-08-09 20:27:45 -04:00
Eli Gottlieb
61432b5725 Merging branches. Will begin correcting mistakes introduced by merging. 2010-08-09 15:41:33 -04:00
Eli Gottlieb
75d19f4863 Reformatting code to match the rest of SDL. Variable names seem OK; replaced tabs with 4 spaces each for indentation. 2010-08-09 15:37:20 -04:00
Sunny Sachanandani
9aa3fcfe91 Documentation and code safety updates. (x11 renderer) 2010-08-08 19:26:30 +05:30