Commit Graph

2412 Commits

Author SHA1 Message Date
Edgar Simo
409cae2c08 Some error checking when destroying the HelperWindow. 2008-12-12 15:51:57 +00:00
Sam Lantinga
369350caa0 Added current_w and current_h to SDL_VideoInfo for SDL 1.2 compatibility 2008-12-12 06:46:20 +00:00
Sam Lantinga
7b22359c71 Updated TODO list 2008-12-10 08:39:00 +00:00
Sam Lantinga
57af796d2c Date: Sun, 07 Dec 2008 13:35:23 +0100
From: Couriersud
Subject: SDL: Mouse last_x, last_y into SDL_Mouse

the attached diff moves the static vars last_x and last_y into
SDL_Mouse. These, as far as I understand it, should be tied to the
individual mouse.

The patch also makes the code check for out of window conditions of
mouse->x,y when relative movements are passed to MouseSendMotion.

Also attached is the latest DirectFB code (dfb20081208) supporting
multiple mice and keyboards. This works quite well with sdlmame now. It
however needs more testing with different directfb configurations.
2008-12-08 00:52:12 +00:00
Sam Lantinga
befb0f7f42 Updated copyright date 2008-12-08 00:27:32 +00:00
Sam Lantinga
8d3aa51736 A little cleanup for SDL snapshot release 2008-12-08 00:24:15 +00:00
Sam Lantinga
90c8eaaaa4 Don't need multi-threaded X11 for SDL 1.3
Plus, this fixes lots of duplicate define warnings on Mac OS X
2008-12-07 23:57:42 +00:00
Sam Lantinga
fbb82fa616 Default SSE2 off on iX86, since gcc will use it for floating point operations
even if -mfpmath=387 is set.  Grr...
2008-12-07 23:25:39 +00:00
Sam Lantinga
dc5ac3d35a Fixed palette sharing 2008-12-07 22:56:18 +00:00
Sam Lantinga
15b9112374 Fixed updating the video surface when the palette changes 2008-12-07 22:48:06 +00:00
Sam Lantinga
fa3ec5263d Fixed picking blit function when RLE fails 2008-12-07 22:37:40 +00:00
Sam Lantinga
6b0a2a6894 Better default format for Mac OS X 2008-12-07 22:29:58 +00:00
Sam Lantinga
7e9c50dc26 Fixed crash in testpalette and potential crash in SDL_LoadBMP_RW() 2008-12-07 22:25:16 +00:00
Sam Lantinga
f29cdbb9b7 Whoops, fixed pitch bug after resizing a surface 2008-12-07 22:04:24 +00:00
Sam Lantinga
d7b138d966 There's no reason to add extra code to notify the mice of window size changes.
Just query the window size when we care about it. :)
2008-12-07 21:53:28 +00:00
Ryan C. Gordon
327d037f8c Comment cleanup. 2008-12-07 07:16:40 +00:00
Ryan C. Gordon
d47e969767 Don't hardcode RECT for fragment program texture targets.
Now we can generate what a given system needs when compiling the shader.
2008-12-07 07:06:34 +00:00
Sam Lantinga
90c895f436 Slight optimization of the shader, no need to scale into 0..255 2008-12-07 04:38:32 +00:00
Sam Lantinga
41b4da57d8 Added official support for GL_APPLE_ycbcr_422 and GL_MESA_ycbcr_texture 2008-12-07 04:02:23 +00:00
Sam Lantinga
7013fda70a The YCbCr texture extension works now that bytes_per_pixel() returns the
correct value for YUV textures.  Yay!

I'm still cheering for Ryan's pixel shader instead, since once it works
different shaders can handle all the YUV formats.
2008-12-06 18:37:06 +00:00
Sam Lantinga
928e9517fe Fixed the shader fragment problems using 2 byte YUV data in a 4 byte RGB
texture.  This is a total hack though.  Maybe we should be using a different
texture format?
2008-12-06 18:22:28 +00:00
Sam Lantinga
6d0e8c4900 Date: Sat, 06 Dec 2008 15:27:00 +0100
From: Couriersud
Subject: SDL: Relative mouse movements

The patch below will reenable processing of relative mouse movements.
The DirectFB drivers generates those in "grabbed" mode. These ensure,
that even in fullscreen mode relative movements are reported. SDLMAME
depends on this for games with trackballs.

Looking at the code I ask myself whether relative movements should be
handled in the drivers (x11, directfb). Both x11 and directfb are able
to report relative movements. This would leave it to the driver to use
the most appropriate method for relative movements when at the border of
a fullscreen window or being "grabbed".
2008-12-06 17:50:50 +00:00
Sam Lantinga
c1ecc11ba7 Date: Sat, 06 Dec 2008 14:54:10 +0100
From: Couriersud
Subject: SDL: DirectFB mouse patch

the attached patch (again) properly registers the mouse in the DirectFB
driver.
2008-12-06 17:46:55 +00:00
Sam Lantinga
5cd4fdcf44 The previous checkin fixes the crash, so at least we're not overrunning
the texture pixel data anymore...
2008-12-06 17:43:10 +00:00
Sam Lantinga
4bad3c66c1 Progress, maybe. :) 2008-12-06 17:41:01 +00:00
Sam Lantinga
b89eada0b9 Fixed SDL_SetAlpha compatibility function to match the documentation 2008-12-06 05:49:53 +00:00
Sam Lantinga
3d4a455ae4 Fixed bug picking blitters 2008-12-06 05:49:08 +00:00
Sam Lantinga
076b869c51 Rebind the context to the window area and update matrices when the window size changes 2008-12-06 05:23:35 +00:00
Ryan C. Gordon
30e93bfd64 Initial pixel shader support for YUV textures in the GL renderer.
This work is not complete yet!
2008-12-06 00:56:47 +00:00
Sam Lantinga
03719ab259 minor bug 2008-12-05 07:01:12 +00:00
Sam Lantinga
438661db5e Whoops, can't call glOrtho() repeatedly 2008-12-05 07:00:58 +00:00
Sam Lantinga
2e83d0061e The matrices have already been set, so you don't have to re-set them.
You always need to reset the viewport when activating the renderer in
case the context had been set to a different window previously.
2008-12-05 06:22:19 +00:00
Sam Lantinga
40c1f1f0df Fixed crashes when resizing video modes 2008-12-05 06:19:49 +00:00
Sam Lantinga
70b01e3704 fixed formatting 2008-12-05 06:19:09 +00:00
Sam Lantinga
18d317f4bf Allow resizing of SDL 1.2 compatibility video mode 2008-12-04 16:54:22 +00:00
Sam Lantinga
766c1e1e93 Added very slow software scaling to the X11 renderer 2008-12-03 12:10:51 +00:00
Sam Lantinga
4888e23002 If scaling isn't supported, do an unscaled copy instead of not showing anything. 2008-12-03 11:09:58 +00:00
Sam Lantinga
36bf69e934 Fixed crash on 64-bit systems 2008-12-03 06:32:04 +00:00
Sam Lantinga
e2acc39b94 Date: Tue, 02 Dec 2008 23:38:26 +0100
From: Couriersud
Subject: Re: SDL: Keyboard layout unknown

I have attached a diff which will add an additional keyboard layout to
the x11 driver. The issue arose, when I moved to ubuntu intrepid. I was
only able to map the keys available on my keyboard. The differences to
the existing keyboard was the mapping of HOME,UP,DOWN and some other
keys.

Now only one issue remains. Dead keys (e.g. ^, ` ') on european
keyboards do not generate a "scancode" event. Just a text event when the
key is composed (e.g. ?? ?? ??).
2008-12-03 04:32:24 +00:00
Sam Lantinga
f3e580a6f1 Added slow but complete blit fallback
Don't try to RLE encode surfaces that have alpha channel and alpha modulation
Don't turn on blending when converting an RGB surface to RGBA format
Do turn on blending when converting colorkey to alpha channel
2008-12-02 17:14:04 +00:00
Sam Lantinga
d100725b2c Added missing header 2008-12-02 17:10:05 +00:00
Sam Lantinga
b19a33def3 Removed unused function 2008-12-02 16:10:21 +00:00
Sam Lantinga
a042a1ebc0 You can't use memset() on screen formats with an alpha channel 2008-12-02 16:09:58 +00:00
Sam Lantinga
b05087fb96 Make sure that we don't generate floating point code that would cause illegal instruction exceptions on older processors, unless someone passes --enable-ssemath to configure. 2008-12-01 23:09:09 +00:00
Ryan C. Gordon
a434b6e0a8 Removed newline, to make sure revision control post-commit hook is working. 2008-12-01 09:45:01 +00:00
Ryan C. Gordon
e7d18ee499 Added a newline, to verify that revision control is functioning. 2008-12-01 09:09:31 +00:00
Sam Lantinga
8b0834d09f Save opaque alpha in the destination, fixes white spotlight in testalpha on Mac OS X. 2008-12-01 00:41:19 +00:00
Ryan C. Gordon
3625e27c7f Added *.dSYM to the ignore properties.
(these are external debug symbols in Mac OS X.)
2008-12-01 00:41:15 +00:00
Sam Lantinga
a4640955b9 Date: Mon, 01 Dec 2008 00:57:15 +0100
From: Couriersud
Subject: SDL : Diff for directfb driver

please find attached a diff against SVN containing the following:

- Updated README.DirectFB a bit
- Fix compile issue with debug output
- Fix display mode setting/switching for directfb >= 1.2.2
2008-12-01 00:10:49 +00:00
Sam Lantinga
fc797e6326 indent 2008-12-01 00:07:45 +00:00