Sam Lantinga
2c7a66fb27
Removed extra space
2011-01-19 11:35:31 -08:00
Sam Lantinga
42a3df6fd3
Michael gave permission to use his test code
2011-01-18 10:57:28 -08:00
Sam Lantinga
f82346f528
Fixed compiler errors
2011-01-17 13:54:13 -08:00
Sam Lantinga
ce2e619ac9
Fixed compiler warning
2011-01-16 17:48:04 -08:00
Sam Lantinga
d428d9d5a1
Include windows.h in SDL_atomic.h by default, but don't include the atomic API in SDL.h
...
This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
2011-01-16 17:45:42 -08:00
Sam Lantinga
b0e0f61c7e
Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
...
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
1bc8fe69ce
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00
Sam Lantinga
fdea37a756
Added some missing pixel formats and SDL_GetPixelFormatName()
2011-01-12 14:53:23 -08:00
Sam Lantinga
3693a452e6
Need to include SDL_main.h ... eh, just include everything. :)
2011-01-10 11:22:07 -08:00
Sam Lantinga
6736ca0525
Android has OpenGL ES too...
2011-01-04 20:37:07 -08:00
Sam Lantinga
aac820df50
Missing math library for testgesture
2011-01-01 20:44:38 -08:00
Sam Lantinga
34b38d2798
Allow META-Enter to toggle fullscreen mode
2011-01-01 19:38:56 -08:00
Sam Lantinga
35cc558917
Use the enumerated type for blend and scale mode instead of int
...
Renamed SDL_TextureScaleMode to SDL_ScaleMode
2010-12-12 15:19:05 -08:00
Sam Lantinga
dc22c27aad
Fixed crash if the gesture coordinates go negative - FIXME: Should this protection be at a lower level?
2010-11-30 18:08:01 -08:00
Sam Lantinga
f7fc00e75c
Added a Visual Studio project for testgesture
2010-11-30 12:38:46 -08:00
Andreas Schiffler
80c83499bf
Remove superflous sample shapes (same BMPs)
2010-09-15 22:33:46 -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
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
238acbd53d
Merged Jim's Google Summer of Code work from SDL-gsoc2010_gesture
2010-08-22 12:07:55 -07:00
Sam Lantinga
9b8ec5c66a
Don't need to use strlen() to determine if there's text.
...
Use the SDL safe strcpy() function
2010-08-22 11:56:07 -07:00
egottlieb
781d130602
Raised binarization cutoff to eliminate alpha-blending of trollface.
2010-08-16 09:55:35 -04:00
Eli Gottlieb
61aae3b891
Added last test shape. Because.
2010-08-15 21:46:46 -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
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
Jjgod Jiang
43cd4e54ac
Fix for deleting the last uncommit character
2010-08-12 16:00:47 +02:00
egottlieb
1b9202537c
Updated shapes folder.
2010-08-09 16:26:45 -04:00
egottlieb
cd2d456d46
Fixed lots of little bugs in Win32 shaping and in SDL_CalculateShapeTree(). Still not actually showing anything on Windows, though there's no crashes and everything compiles fine. Bugger.
2010-08-06 20:22:14 -04:00
egottlieb
c95526b7ce
Improving Cocoa implementation and fixed a small bug in SDL_shape.c.
2010-08-05 18:58:45 -04:00
Eli Gottlieb
6c23f8c602
Fixed a couple of bugs in the general and X11 shape code, and fixed a bug in testshape that was keeping it from recognizing surfaces without alpha. Thanks to Andreas's bit-bashing tip, X11 shaped windows now work entirely, AFAICT.
2010-08-01 21:10:42 -04:00
Eli Gottlieb
0e0ad58e1f
Added Andreas's VS2010 patch for testshape.
2010-07-30 18:04:21 -04:00
Sam Lantinga
a57835d4af
Added missing pixel format
2010-07-28 01:32:39 -07:00
Eli Gottlieb
3433f10279
Added shapes folder to hg.
2010-07-26 21:49:32 -04:00
Eli Gottlieb
155833dd81
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
cae6f1376d
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
1d79a9b5d8
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
Eli Gottlieb
6cc1b97fc5
More work on color-key mode.
2010-07-23 01:48:42 -04: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
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
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
Sam Lantinga
c1eb1e8f25
Added support for testing window manager icons
2010-07-14 21:25:15 -07:00
Sam Lantinga
51b5767091
Added test case for maximize code
2010-07-13 23:05:14 -07:00
Eli Gottlieb
20c4883dee
Numerous bug fixes that keep testeyes from crashing and dying.
2010-07-14 00:49:28 -04:00
Ryan C. Gordon
e9eaf8d58d
Removed compiled testeyes from revision control. Added it to ignore list.
2010-07-13 02:27:59 -04:00
Sam Lantinga
ff0ba0afa5
Added an event when the clipboard is updated, triggered after the window gains the keyboard focus.
2010-07-08 22:54:03 -07:00