Sam Lantinga
51b19abe02
Minor cleanup in patches from Coursoud
2010-09-27 01:30:42 -07:00
Sam Lantinga
45e68f6c5c
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
e2b5e8275b
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
bbf3279972
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
1af81c30b3
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
44eb5de93d
Fixed compiling with mingw32/64
2010-09-19 16:46:56 -07:00
Daniel Wyatt
12be16146b
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
a55c55c319
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
eaca51873a
Fixed crash on systems that don't have StopTextInput
2010-09-18 18:31:01 -07:00
Sam Lantinga
7fcd8b7560
Fixed crashing loading 48KHz audio, contributed by Terry Welsh
2010-09-18 18:15:08 -07:00
Andreas Schiffler
1975b91fae
- 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
d0de6340e8
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
515a3e58ab
Compiling in atan()/atan2() implementation on Visual Studio 2008.
2010-08-29 16:55:58 -07:00
Sam Lantinga
d8303d3f7a
Added atan implementation from uClibc
2010-08-29 16:51:48 -07:00
Sam Lantinga
4d97d1a549
Whoops, return "" even if the window is invalid.
2010-08-29 16:28:04 -07:00
Sam Lantinga
b59ef043a6
The title is stored internally as NULL if it's empty, and returned as ""
2010-08-29 16:26:35 -07:00
Sam Lantinga
21e184b0bb
Added atan2 implementation from uClibc
2010-08-29 16:05:34 -07:00
Sam Lantinga
7411f7531b
Fixed compiling with Visual Studio 2008
2010-08-29 14:22:22 -07:00
Sam Lantinga
adc9598f1a
While you can actually write to the error buffer, conceptually it's read-only.
2010-08-29 12:00:09 -07:00
Andreas Schiffler
dc0f95c447
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
7c463932c2
Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
...
--HG--
rename : VisualC/SDL.sln => VisualC/SDL_VS2005.sln
2010-08-22 13:45:56 -07:00
Sam Lantinga
1f8dacabd7
Merged Daniel's Google Summer of Code work from SDL-gsoc2010_IME
2010-08-22 12:39:27 -07:00
Sam Lantinga
66d40ad333
Cleanup from the Android commit
2010-08-22 12:35:34 -07:00
Sam Lantinga
7d245d0532
Removed spurious carriage returns
2010-08-22 12:34:31 -07:00
Sam Lantinga
a64fc29cfb
Merged Paul's Google Summer of Code work from SDL-gsoc2010_android
2010-08-22 12:23:55 -07:00
Sam Lantinga
238acbd53d
Merged Jim's Google Summer of Code work from SDL-gsoc2010_gesture
2010-08-22 12:07:55 -07:00
egottlieb
b72231e508
Create all shaped windows at -1000,-1000 and save the real coordinates.
2010-08-17 01:11:11 -04:00
egottlieb
18dce59eb7
Recoded Cocoa code that got erased by... failure to commit? Merge? Eh.
2010-08-16 14:01:00 -04:00
egottlieb
c510c4d902
Moved the +1 to mostly eliminate the visual artifact.
2010-08-16 10:48:54 -04:00
egottlieb
9f396e2964
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
80d2377e78
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
b109f61935
Removed useless debugging code.
2010-08-15 22:03:38 -04:00
egottlieb
affaf98f34
Added hiding-as-positioning trick and finally fixed flags.
2010-08-15 21:46:04 -04:00
Eli Gottlieb
b3840496be
Changed flags and positioning (for the fake-hiding) as Andreas recommended.
2010-08-15 18:52:57 -04:00
Jim Grandpre
794c5cb3ee
Added README.touch and README.gesture. Moved touchtest/gestureSDLTest to test/testgesture
2010-08-15 00:36:28 -04:00
egottlieb
6d46437524
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
4e4cb86ffe
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
68b3cfb42f
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
b2104a9057
Working on the sound system
2010-08-14 12:35:21 +12:00
Sam Lantinga
c26da073d3
Fixed so the origin of the touch events is the upper left.
2010-08-13 17:05:06 -07:00
Eli Gottlieb
0a86be6abb
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
43cd4e54ac
Fix for deleting the last uncommit character
2010-08-12 16:00:47 +02:00
Sam Lantinga
819cc95139
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
25775cdb23
Fixed a bug in X11 shaping that refused to use color-key mode.
2010-08-10 16:10:26 -04:00
Eli Gottlieb
5f2c8902e0
Fixing bugs introduced into X11 shaping implementation by merge.
2010-08-10 15:45:59 -04:00
egottlieb
b6eeb0d250
Switched over to poly-polygon region building and shape-tree traversal for Win32.
2010-08-10 15:39:46 -04:00
Eli Gottlieb
f294cf6a4c
Fixed formatting of SDL_shape.c post-merge again.
2010-08-09 20:32:15 -04:00
Eli Gottlieb
f4b4b47ab1
Fixed overwriting of SDL_shape.c in merge.
2010-08-09 20:27:45 -04:00
Eli Gottlieb
56d94ad5b3
Merging branches. Will begin correcting mistakes introduced by merging.
2010-08-09 15:41:33 -04:00
Eli Gottlieb
30693e9160
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