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
Sam Lantinga
a39d3dd3dc
Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code
...
will be far superior. :)
2008-12-01 00:05:31 +00:00
Sam Lantinga
785842dc11
Finally got the right mojo for Apple's YUV texture format.
2008-12-01 00:03:51 +00:00
Sam Lantinga
2e620cd578
Fixed the list of supported YUV formats
2008-11-30 23:42:33 +00:00
Sam Lantinga
106af10068
Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
2008-11-30 21:58:23 +00:00
Sam Lantinga
e2c90af939
Temporary fix for Mac OS X crash in textoverlay
2008-11-29 21:48:14 +00:00
Sam Lantinga
f374de5ac9
Whoops, we need this for subrect updates (testsprite)
2008-11-29 15:32:14 +00:00
Sam Lantinga
69c1e59e91
The SDL_RLEACCEL flag is respected in SDL_ConvertSurface(), per the docs.
...
Fixed saving BMP files of surfaces with an alpha channel.
2008-11-29 11:26:01 +00:00
Sam Lantinga
420db1dc91
Fixed testalpha screen clear for screen formats with an alpha channel
2008-11-29 11:24:18 +00:00
Sam Lantinga
48b5552ec0
Preserve the desire for RLE acceleration
2008-11-29 10:43:50 +00:00
Sam Lantinga
09a0bb1e39
Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
2008-11-29 06:29:33 +00:00