Commit Graph

2197 Commits

Author SHA1 Message Date
Sam Lantinga
ea72f5eaf6 Merged revision 3458 from SDL 1.2, fixed Borland C alloca() prototype 2007-12-28 08:07:57 +00:00
Sam Lantinga
057531a52a Merged revision 3455 from SDL 1.2, fixing documentation typo. 2007-12-28 07:54:35 +00:00
Bob Pendleton
ea9e36a1c1 Added SDL_rect.h and SDL_surface.h to the initialization of HDRS in Makefile.in. Because they were missing those header files were not being installed and
./configure in the test directory was erroring off.
2007-12-13 03:53:02 +00:00
Ryan C. Gordon
0e7872fd7d Merged r3449:3450 from branches/SDL-1.2: SDL_config.h.in Linux joystick fix. 2007-09-25 10:01:10 +00:00
Sam Lantinga
4f2f07efff Split out the SDL_rect and SDL_surface functions into their own headers.
Removed unused count from the dirty rect list.
2007-09-10 12:20:02 +00:00
Sam Lantinga
1e891ee4f2 indent 2007-09-10 12:11:40 +00:00
Sam Lantinga
6b567a2fb0 Fixed bug #471 2007-08-21 06:54:07 +00:00
Ryan C. Gordon
8446fb5976 Minor PulseAudio fixes: corrected OpenDevice return code, human-readable
error messages if connction to daemon fails.
2007-08-20 02:08:37 +00:00
Ryan C. Gordon
76eb0e6b90 Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
Fixes Bugzilla #439.
2007-08-20 01:02:37 +00:00
Sam Lantinga
bd3f5173f5 Date: Sun, 19 Aug 2007 18:29:28 +0200
From: Christian Walther
Subject: Re: SDL 1.3 keyboard plan

> 2007-08-18 19:15:51.454 checkkeys[5795] *** _NSAutoreleaseNoPool():
> Object 0x532750 of class NSSelectionArray autoreleased with no pool
> in place - just leaking

This is fixed by the attached patch.
2007-08-19 16:36:51 +00:00
Sam Lantinga
c84ff85475 Whoops, missing file... 2007-08-19 16:35:44 +00:00
Sam Lantinga
7b145f5ad0 Date: Thu, 05 Jul 2007 14:02:33 -0700
From: Sam Lantinga
Subject: SDL 1.3 keyboard plan

After lots of discussion with Christian, this is what we came up with:

> So, to sum up...
> SDLK_* become the physical keys, starting at > (1<<21)
> We create a macro SDLK_INDEX(X)
> We have two functions SDL_GetLayoutKey(SDLKey) and SDL_GetKeyName()
> SDL_GetLayoutKey maps to UCS4 for printable characters, and SDLK* for
  non-printable characters
> and does so based on the OS's current keyboard layout
> SDL_GetKeyName() handles both SDLK_* and UCS4, converting UCS4 to UTF-8 and
  converting SDLK_* into our names, which are UTF-8 for printable characters.
> WASD folks use SDLK_*, and 'I' folks use SDL_GetLayoutKey(SDLK_*)

Here is the patch he came up with, and his e-mail about it:

Date: Fri, 17 Aug 2007 19:50:28 +0200
From: Christian Walther
Subject: Re: SDL 1.3 keyboard plan

> Sounds great, go ahead and send me a patch.

Here goes! Thanks for having a look. Don't hesitate to comment if
anything does not conform to your ideas.

One caveat: Committing this now may break compilability of some video
drivers - specifically, if they use any of the SDLK_* codes that were
obsoleted and moved into SDL_compat.h. I only tried Cocoa (which did
break, but is already fixed) and X11 (which didn't, but then its key
handling is #iffed out). If that's a problem, it may need to go into
a branch.

  -Christian
2007-08-19 14:52:52 +00:00
Sam Lantinga
b9d3d66bfb Okay, still some bugs, but everything builds again... 2007-08-18 05:39:09 +00:00
Sam Lantinga
73cc09fedb More work in progress integrating SDL_Surface and the new SDL_Texture API 2007-08-18 01:44:21 +00:00
Sam Lantinga
59d6059cae More work in progress... 2007-08-17 06:58:20 +00:00
Sam Lantinga
99d8df4fc1 Enabled SSE2 intrinsics 2007-08-17 06:41:20 +00:00
Sam Lantinga
7f03398faa More work in progress, still doesn't compile... 2007-08-17 06:40:12 +00:00
Sam Lantinga
82908c483c Work in progress: merging new texture features into SDL blit system 2007-08-17 06:21:58 +00:00
Sam Lantinga
d5d655cc43 Enabled 3DNow! intrinsic support 2007-08-17 03:22:03 +00:00
Sam Lantinga
c120eaf9e4 indent 2007-08-17 02:55:21 +00:00
Sam Lantinga
a4e5bc25cc Date: Fri, 17 Aug 2007 01:12:31 +0200
From: Couriersud
Subject: fix for audio dsp exit crash / various dfb issues

improved cursor handling
fixes some mouse and event related bugs
2007-08-17 02:54:50 +00:00
Sam Lantinga
785b4a61c3 Date: Fri, 17 Aug 2007 01:12:31 +0200
From: Couriersud
Subject: fix for audio dsp exit crash / various dfb issues

The current code will crash on exiting an application. The attached diff
fixes the issue.
2007-08-17 02:54:12 +00:00
Sam Lantinga
65b59716be Moved the colorkey and per-surface alpha into the blit info,
in preparation for support for general color channel modulation.

Removed and consolidated some data in the blit info.
2007-08-17 00:54:53 +00:00
Sam Lantinga
367092a182 Getting ready to add slow blitters. Everyone will love me. :) 2007-08-16 22:56:18 +00:00
Sam Lantinga
a35d8c5da8 Use MMX intrinsics over GCC inline assembly 2007-08-16 22:18:53 +00:00
Sam Lantinga
47dfad08cc Oops, didn't want to rename those files... 2007-08-16 21:54:26 +00:00
Sam Lantinga
bcce9c56b0 Added notes on the next steps for SDL 1.3
Moved fill and copy routines to their own files.
2007-08-16 21:43:19 +00:00
Sam Lantinga
16c1080593 Removed unnecessary header (SDL_blit.h has SDL_cpuinfo.h) 2007-08-16 06:40:34 +00:00
Sam Lantinga
fd5ae1f46d SSE and MMX intrinsics work with Visual Studio now... 2007-08-16 06:37:22 +00:00
Sam Lantinga
b886cc3b5c Fixed a few compiler warnings.
Added SDL_blit_copy.c to the Visual C++ project

The SSE and MMX intrinsics don't compile on Visual Studio yet...
2007-08-16 06:20:51 +00:00
Sam Lantinga
65d361b41b Added SSE and MMX optimization for SDL_FillRect() 2007-08-16 05:56:24 +00:00
Sam Lantinga
f1b05ff63b Okay, I figured out the intrinsics for SIMD memcpy 2007-08-16 02:14:13 +00:00
Sam Lantinga
fc16af50b2 Removed hermes since it's LGPL and not compatible with a commercial license.
Prepping for using MMX and SSE intrinsics instead of inline assembly.
.. except for memcpy equivalents which only get faster if they can
   exploit the parallelism of loading into multiple SIMD registers. :)
2007-08-15 08:21:10 +00:00
Sam Lantinga
377c3990ba Added code to enable multi-threaded OpenGL on Mac OS X, pending Ryan's PBO/VBO
changes.
2007-08-15 04:04:17 +00:00
Sam Lantinga
45891d1d50 Optimization suggested by Ryan:
Don't set the same OpenGL context multiple times
2007-08-15 03:52:31 +00:00
Sam Lantinga
47455281fd indent 2007-08-15 03:50:49 +00:00
Sam Lantinga
1b7386279e Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

LoadLibrary will call X11_GL_Initialize. If LoadLibrary is called before
a window is created, it will crash since structures are not properly set
up.
2007-08-15 03:34:14 +00:00
Sam Lantinga
62a3c00b46 Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

fixed a compiler warning
2007-08-15 03:20:55 +00:00
Sam Lantinga
0fe1784459 Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

Modified UpdateTexture to lock and unlock DirectFB-Surface.
2007-08-15 03:19:21 +00:00
Sam Lantinga
74a291769a Fixed crash setting 0 bpp video mode. 2007-08-15 03:18:24 +00:00
Sam Lantinga
0c2f549390 Added SSE version of SDL_FillRect() for 32-bit ARGB surfaces 2007-08-13 06:24:56 +00:00
Sam Lantinga
2a2e08c995 Shark rules!
* Loop optimization for Mac OS X - should this generally be applied?
2007-08-13 03:03:23 +00:00
Sam Lantinga
cfd7794fec Advertise the most efficient format for the screen. Of course SDL code needs
to be fixed to handle framebuffers with alpha...
2007-08-13 02:38:59 +00:00
Sam Lantinga
2d2be66919 This is byte order dependent. 2007-08-12 18:53:51 +00:00
Sam Lantinga
1de747845b indent 2007-08-12 18:44:49 +00:00
Sam Lantinga
f2c7446b24 Gained 5 FPS in testsprite because Mac OS X memset is highly optimized 2007-08-12 18:27:44 +00:00
Sam Lantinga
6d8a22e975 Test using glTextureRangeAPPLE
This actually ends up being quite a bit slower on my MacBook, but I'm
checking it in to test on a PPC iMac.

Maybe someone knows why it's slower?
2007-08-12 16:53:58 +00:00
Sam Lantinga
49204a8cdd indent 2007-08-12 16:26:10 +00:00
Sam Lantinga
61ed776db3 Fixed compiling the Altivec blit code 2007-08-12 15:41:36 +00:00
Sam Lantinga
dbb114bdf1 Optimized OpenGL renderer for Mac OS X.
The SDL 1.2 API version of testsprite went from 120 FPS to 320 FPS. :)
2007-08-12 07:02:28 +00:00