Commit graph

3035 commits

Author SHA1 Message Date
Eli Gottlieb
9f24e9f619 Updated test code, updated win32 code a bit (still not complete, but hopefully tonight), and removed the last vestiges of ellipse and polygon drawing support. 2010-07-06 22:05:22 -04:00
Sam Lantinga
9807496e30 Fixed fullscreen window position
Fixed position calculation for centered windows
2010-07-06 08:22:36 -07:00
Sam Lantinga
715dd0b4e8 Fixed fullscreen window position
Fixed position calculation for centered windows
2010-07-06 08:22:36 -07:00
Paul Hunkin
d8e077adbb Added preliminary keyboard event support 2010-07-07 00:43:23 +12:00
dewyatt
9fad608a86 Added missing line to make things compile. 2010-07-06 03:27:22 -04:00
dewyatt
a9eb1670a1 Added empty text input functions for win32. 2010-07-06 02:34:49 -04:00
dewyatt
07e6c52137 Merge 2010-07-06 02:07:42 -04:00
Sam Lantinga
320eb4600b Cleaned up the mouse window focus handling: you always pass in the relative window when sending a mouse event.
Fixed a bug where only mouse wheel up was sent on Mac OS X
Fixed a bug where mouse window focus was getting hosed by the fullscreen mouse code on Mac OS X
2010-07-05 22:48:13 -07:00
Sam Lantinga
7ea6ef0d5a Fixed compile warning with latest mingw32 compiler 2010-07-05 12:32:44 -07:00
Eli Gottlieb
a50bf48eac Added SDL_x11shape.h and removed unnecessary header includes from SDL_x11shape.c. This should help Andreas and Sam to compile the new code. 2010-07-02 12:05:47 -04:00
Eli Gottlieb
911e4c49b8 Added SDL_x11shape.h. 2010-07-02 12:02:18 -04:00
Sunny Sachanandani
f0e9e6ac76 Fix blending modes for primitives. 2010-07-01 07:35:15 +05:30
Eli Gottlieb
ea29eee83c Finished X11 shaped-window functionality and removed ellipse+polygon rendering. 2010-06-30 16:19:44 -04:00
Paul Hunkin
482a87c499 - Restructured threads and application structure.
- Moved to SurfaceView instead of GLSurfaceView
- Moved to C++ for the android library
2010-06-29 00:40:12 +12:00
Paul Hunkin
3ad2c1bdbf Last test version with GLSurface 2010-06-28 21:35:28 +12:00
Sunny Sachanandani
b8d6bdfa5a Preliminary support for blending modes on drawing operations. 2010-06-27 09:51:51 +05:30
Sam Lantinga
09f20dba54 Removed one more use of () 2010-06-26 08:58:06 -07:00
Sam Lantinga
95fbd50b15 Mostly cleaned up warnings with -Wmissing-prototypes 2010-06-26 08:56:48 -07:00
Sunny Sachanandani
d0033d15a1 Texture rendering mostly works now. Even SDL_TEXTUREACCESS_STREAMING is supported now with a little overhead. Scaling of textures happens using XRender. :D 2010-06-22 20:01:38 +05:30
Eli Gottlieb
2c8b1ce8f7 Added Andreas's fixes to the header and stub file for SDL_shape. 2010-06-21 23:08:10 -04:00
Eli Gottlieb
00e7bc8b93 Replaced the model of treating a window's shape as a render target with treating a window's shape as a surface passed into an SDL_SetWindowShape() function. I'll send this off to Andreas and Sam and start coding. 2010-06-19 23:10:57 -04:00
Jim Grandpre
06e66b928e Fixed bugs in input, cleaned up $1 2010-06-18 01:43:02 -04:00
Sam Lantinga
b46edfbdc6 Hello Sam.
I did fix/update the SDL 1.3 pandora port today ( 11 june 2010 ) and you can find the "hg diff" attached :)

David Carré ( Cpasjuste )
2010-06-17 22:23:20 -07:00
Sam Lantinga
8840de14d1 Fixed mouse focus window reporting
FIXME: Should the window be a parameter to the mouse events again?
2010-06-17 12:33:05 -07:00
Paul Hunkin
904e7b4511 Tweaks to the libsdl side 2010-06-18 01:29:14 +12:00
Paul Hunkin
c67e5f7bcb Removed old video subsystem, along with (now-unncessary) egl files. 2010-06-18 00:03:09 +12:00
Jim Grandpre
66e6be2acd Added $1 gesture recognition.
Functional.
2010-06-17 03:41:27 -04:00
Sunny Sachanandani
3782e9a0c5 SDL_Textures should work with XRender now provided that the texture format and screen format match. This is only a temporary limitation. 2010-06-16 10:50:01 +05:30
Sunny Sachanandani
f499e5e7e5 X11_RenderDrawLines and X11_RenderDrawPoints use XRender now. 2010-06-15 19:10:06 +05:30
Sunny Sachanandani
bc858ad7cd X11_RenderFillRects and X11_RenderDrawRects use a server side mask pixmap of 1 bit depth now. All drawing on these pixmaps is done by server side functions such as XDrawRectangles and XFillRectangles. 2010-06-14 18:22:48 +05:30
Eli Gottlieb
3389f25629 Stubbed out the new get/set parameter functions, added the start of the enum, union, and struct for those parameters themselves, and added doxygen comments throughout the SDL_shape.h header. 2010-06-10 17:37:19 -04:00
Paul Hunkin
a633daa196 Fixed #includes to fix naming conventions 2010-06-10 19:25:55 +12:00
Paul Hunkin
84cd073e6f Renamed some files to fit naming conventions
--HG--
rename : src/video/android/SDL_androidevents_c.h => src/video/android/SDL_androidevents.h
rename : src/video/android/SDL_androidrender_c.h => src/video/android/SDL_androidrender.h
2010-06-10 19:02:55 +12:00
Paul Hunkin
dc9ee5ef88 Added (partially implemented) android video backend and associated files needed to build 2010-06-10 18:54:23 +12:00
jimtla
cc8ad7be79 More fixes for windows. Disabled tablet code. 2010-06-10 00:15:17 -04:00
dewyatt
36437b89ca Added else to make things clear. 2010-06-09 21:36:32 -04:00
Sunny Sachanandani
843724af72 X11_DrawRects now uses a very hacky way of drawing rectangles with XRender. This will be improved in some time. 2010-06-08 19:26:32 +05:30
dewyatt
52def78851 Change SDL to not use DefWindowProc as the window class' window procedure.
For some reason, having lpfnWndProc=DefWindowProc during window class registration causes IME input to not work in windows.
With this small change, IME input should now work in SDL windows but not in fullscreen mode.
2010-06-08 05:22:49 -04:00
Eli Gottlieb
350a2b464e Fixed names of driver-specific implementation files. 2010-06-05 15:12:27 -04:00
Eli Gottlieb
3b75623708 Removed and added back SDL_shape.{c,h} wholesale. Will this get them tracked properly? 2010-06-05 15:07:14 -04:00
Eli Gottlieb
17e8b4796b Took away a line break to make SDL_shape.c new. Why isn't hg tracking these two files properly? 2010-06-05 15:02:26 -04:00
Eli Gottlieb
c8581d3a82 Fixed up new functions and files so that they build as part of SDL. 2010-06-03 17:21:40 -04:00
Eli Gottlieb
af2813acd5 Stubbed out the new drawing, filling, and geometry functions for ellipses and polygons. 2010-06-03 16:21:04 -04:00
jimtla
36b60b6ffd Fixed windo build errors. Should now be compilable. 2010-06-03 13:21:35 -04:00
jimtla
2ab139c207 Fixed some windows compilation bugs - Still does not compile. 2010-06-03 11:08:17 -04:00
Sunny Sachanandani
440a6894f5 It seems that the off-screen buffers (or pixmaps) only need to be cleared while initializing. 2010-06-02 11:55:40 +05:30
Sunny Sachanandani
75d7bf45f9 Fix X11_FillRects to work with double buffering as well as triple buffering. This requires that the buffer pixmap be cleared after every render. 2010-06-02 11:45:15 +05:30
Sunny Sachanandani
c323705090 Fix the rendering color channels to be premultiplied with the alpha channel as thats what Xrender expects. Small fixes in X11_CreateTexture. Add some new functions in SDL_x11sym.h as well as support for Xrender. 2010-06-02 09:01:37 +05:30
Jim Grandpre
4960f0aff9 Added include/touch.h Now reading in resolution of touch pad. 2010-06-01 02:54:33 -04:00
Sunny Sachanandani
99aee647e0 X11_RenderPresent now uses XRender to blit back-buffers to the screen. 2010-05-31 17:04:20 +05:30