Commit graph

2377 commits

Author SHA1 Message Date
Sam Lantinga
4a86bb6ebf Added very slow software scaling to the X11 renderer
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403289
2008-12-03 12:10:51 +00:00
Sam Lantinga
a403d94807 If scaling isn't supported, do an unscaled copy instead of not showing anything.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403288
2008-12-03 11:09:58 +00:00
Sam Lantinga
a547129012 Fixed crash on 64-bit systems
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403287
2008-12-03 06:32:04 +00:00
Sam Lantinga
a9f8def25b 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. ?? ?? ??).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403286
2008-12-03 04:32:24 +00:00
Sam Lantinga
4a696cc335 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403285
2008-12-02 17:14:04 +00:00
Sam Lantinga
7e7747ebec Added missing header
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403284
2008-12-02 17:10:05 +00:00
Sam Lantinga
9648484187 Removed unused function
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403283
2008-12-02 16:10:21 +00:00
Sam Lantinga
49bf0c5792 You can't use memset() on screen formats with an alpha channel
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403282
2008-12-02 16:09:58 +00:00
Sam Lantinga
bb3dd43be0 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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403281
2008-12-01 23:09:09 +00:00
Ryan C. Gordon
8160ae0787 Removed newline, to make sure revision control post-commit hook is working.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403280
2008-12-01 09:45:01 +00:00
Ryan C. Gordon
d6c4d17adf Added a newline, to verify that revision control is functioning.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403279
2008-12-01 09:09:31 +00:00
Sam Lantinga
76d2dbd21b Save opaque alpha in the destination, fixes white spotlight in testalpha on Mac OS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403278
2008-12-01 00:41:19 +00:00
Ryan C. Gordon
8820fed841 Added *.dSYM to the ignore properties.
(these are external debug symbols in Mac OS X.)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403277
2008-12-01 00:41:15 +00:00
Sam Lantinga
1709286e00 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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403276
2008-12-01 00:10:49 +00:00
Sam Lantinga
7356f7336e indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403275
2008-12-01 00:07:45 +00:00
Sam Lantinga
be3717c64e Removed the hacky stuff for YUV OpenGL textures, since Ryan's pixel shader code
will be far superior. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403274
2008-12-01 00:05:31 +00:00
Sam Lantinga
02f6a8797c Finally got the right mojo for Apple's YUV texture format.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403273
2008-12-01 00:03:51 +00:00
Sam Lantinga
0f0dfe230b Fixed the list of supported YUV formats
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403272
2008-11-30 23:42:33 +00:00
Sam Lantinga
ace68e0a7c Implemented the X11 (non-OpenGL) renderer, no alpha or scaling available.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403271
2008-11-30 21:58:23 +00:00
Sam Lantinga
5632821dd0 Temporary fix for Mac OS X crash in textoverlay
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403270
2008-11-29 21:48:14 +00:00
Sam Lantinga
8e1f968f50 Whoops, we need this for subrect updates (testsprite)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403269
2008-11-29 15:32:14 +00:00
Sam Lantinga
fb253660b5 The SDL_RLEACCEL flag is respected in SDL_ConvertSurface(), per the docs.
Fixed saving BMP files of surfaces with an alpha channel.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403268
2008-11-29 11:26:01 +00:00
Sam Lantinga
7a4a712978 Fixed testalpha screen clear for screen formats with an alpha channel
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403267
2008-11-29 11:24:18 +00:00
Sam Lantinga
b64cf8229c Preserve the desire for RLE acceleration
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403266
2008-11-29 10:43:50 +00:00
Sam Lantinga
c81d1708ba Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403265
2008-11-29 06:29:33 +00:00
Sam Lantinga
f6ac2f5c20 Fixed the texture format for the software fallback
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403264
2008-11-29 06:27:26 +00:00
Sam Lantinga
4dd90ea023 Fixed SW_SetTextureScaleMode()
Use RLE acceleration for static textures in the software renderer.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403263
2008-11-29 00:11:35 +00:00
Sam Lantinga
966af920a2 Fixed copy blit detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403262
2008-11-29 00:10:59 +00:00
Sam Lantinga
9c7eee3fc0 Added ARGB8888 destination format (used on Mac OS X)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403261
2008-11-29 00:08:29 +00:00
Sam Lantinga
79a929ff00 Again, map the color with the alpha channel filled in.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403260
2008-11-28 20:09:32 +00:00
Sam Lantinga
3446f888c5 Fixed crash in testalpha. I think this was supposed to clear those bits. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403259
2008-11-28 19:59:46 +00:00
Sam Lantinga
843bc58619 Map to black, not necessarily 0
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403258
2008-11-28 17:44:28 +00:00
Sam Lantinga
30d4fc124c Clear the screen to actual black based on the format of the screen.
Use a better texture format for YUV overlay software fallbacks

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403257
2008-11-28 17:42:40 +00:00
Sam Lantinga
8ae88d7987 Set the alpha mask fixing software rendering in OpenGL
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403256
2008-11-27 22:11:01 +00:00
Sam Lantinga
ad090cd0f8 Fixed mouse coordinate range on Mac OS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403255
2008-11-27 21:53:18 +00:00
Sam Lantinga
be449ce8ef RemDisabled some video drivers which are not converted to 1.3 yet
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403254
2008-11-27 05:29:12 +00:00
Sam Lantinga
cba90d1ff7 Show the grey background first before starting to blit sprites
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403253
2008-11-27 04:51:34 +00:00
Sam Lantinga
84ebed84ce Date: Wed, 26 Nov 2008 19:50:31 +0100
From: Couriersud
Subject: LPGL and closed-source license / Re: [Bug 607] Texture palette not up

Permission granted to release code under both LPGL and closed-source
commercial license.

Please find attached a minor patch fixing vsync handling in the directfb
driver and containing a small update to README.directfb

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403252
2008-11-26 21:59:35 +00:00
Sam Lantinga
4757b1339c Both testsprite and testsprite2 use a grey background
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403251
2008-11-26 15:52:00 +00:00
Sam Lantinga
39969245f8 Fixed bug #605, per Martin's suggestion
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403250
2008-11-25 20:06:27 +00:00
Sam Lantinga
22598bbc06 Updated with latest glext.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403249
2008-11-25 08:40:52 +00:00
Sam Lantinga
228035d0f3 It turns out both the software and the OpenGL renderer had the same problem.
According to the spec, when SDL_SRCALPHA is set, the colorkey is ignored, so
we just need to convert the colorkey into the alpha channel.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403248
2008-11-25 05:29:14 +00:00
Sam Lantinga
a733eee1b8 indent
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403247
2008-11-25 02:21:53 +00:00
Sam Lantinga
de690ebe5d Fixed bug with converting colorkey surface to texture
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403246
2008-11-25 02:12:19 +00:00
Sam Lantinga
f341bd32dd --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403245
2008-11-25 00:48:25 +00:00
Sam Lantinga
32593c2bac Fixed Direct3D rendering
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403244
2008-11-25 00:29:44 +00:00
Sam Lantinga
4123b08dad Added testsprite test projects for Visual Studio
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403243
2008-11-24 23:55:18 +00:00
Sam Lantinga
4bab1880be Added software fallback for YUV overlay code when YUV textures aren't available.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403242
2008-11-24 23:25:36 +00:00
Sam Lantinga
de5363f399 Disable spurious warning
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403241
2008-11-24 21:43:02 +00:00
Sam Lantinga
ad347d4a12 Fixed Bugzilla bug #205
Removed SDL_KillThread() from the API, as it isn't safe on many platforms.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403240
2008-11-24 00:18:42 +00:00