Commit Graph

5003 Commits

Author SHA1 Message Date
Ryan C. Gordon
a4382ccbb7 Quartz fix:
ut2004 makes a 2D window for the splash screen, which sets the screen
surface's pixels field. Then we tear down that video mode and create a GL
context, and the Quartz target isn't resetting the pixels field to NULL.

When you just create a GL window, the structure is memset'd to zero the
first time through, so unless you hit ut2004's codepath, you won't see the
bug.  :)

Without this patch, quitting a windowed ut2003/ut2004 game makes the OS dump a
warning about a bogus free() to stderr, but it doesn't actually crash. All we
need to do is explicitly initialize the current->pixels field.
2004-02-24 06:53:22 +00:00
Sam Lantinga
acea3c774d Doh! 2004-02-23 15:49:28 +00:00
Sam Lantinga
760068f108 Added an endian detection and byte swapping test program 2004-02-23 08:03:14 +00:00
Sam Lantinga
2838191e14 Added inline byte swapping code for other architectures 2004-02-23 06:09:21 +00:00
Sam Lantinga
cfeddcb5ca Avoid using kernel internal headers 2004-02-23 05:32:52 +00:00
Sam Lantinga
2099bf54a1 *** empty log message *** 2004-02-21 00:21:06 +00:00
Sam Lantinga
f4baa32414 *** empty log message *** 2004-02-20 18:18:20 +00:00
Sam Lantinga
d2a487772f Fixed a bug in detecting surface mapping changes 2004-02-19 21:13:24 +00:00
Sam Lantinga
9e02d4aecb *** empty log message *** 2004-02-18 03:57:13 +00:00
Sam Lantinga
785e6c2328 Updated SDL_opengl.h to include the latest version of glext.h 2004-02-17 23:29:52 +00:00
Sam Lantinga
f242b7e778 Load the correct library on Windows 2004-02-17 22:04:44 +00:00
Sam Lantinga
d0fb7b6372 *** empty log message *** 2004-02-17 22:00:33 +00:00
Sam Lantinga
215d2d8073 *** empty log message *** 2004-02-17 18:21:46 +00:00
Sam Lantinga
97b5d3bc6e Added a test program for dynamically loading OpenGL 2004-02-17 18:16:49 +00:00
Sam Lantinga
4eda6a12bb *** empty log message *** 2004-02-17 18:01:39 +00:00
Sam Lantinga
f9eb3341b9 *** empty log message *** 2004-02-17 16:19:29 +00:00
Sam Lantinga
6c5a569eb8 *** empty log message *** 2004-02-17 04:48:16 +00:00
Sam Lantinga
9241ef2292 *** empty log message *** 2004-02-17 04:47:25 +00:00
Sam Lantinga
9902e9e764 *** empty log message *** 2004-02-16 21:15:25 +00:00
Sam Lantinga
c1efb544b9 Added support for SDL_VIDEO_WINDOW_POS and SDL_VIDEO_CENTERED on Windows 2004-02-16 21:09:24 +00:00
Sam Lantinga
bff524f0f5 Date: Mon, 16 Feb 2004 19:21:51 +0100
From: Max Horn
Subject: Re: Fix for OSX bug

The problem is that our actual client area is realized as a
subview of the "content view" of the window. That's normal so far. The
odd part is that, while our subview starts out filling it parent 100%,
upon resizes it gets changed to something smaller....

Anyway, here is a revised patch which simply enforces the size of
window_view by calling setFrameSize.
2004-02-16 21:06:10 +00:00
Sam Lantinga
0770c6a8ec Remove automake junk before generating a snapshot 2004-02-16 04:37:56 +00:00
Sam Lantinga
737ca6248d *** empty log message *** 2004-02-16 00:03:31 +00:00
Sam Lantinga
bb827d7c68 Fixed mouse focus events after resetting video mode on Windows 2004-02-15 22:50:28 +00:00
Sam Lantinga
68ba3ca277 Lots of people have contributed cash. :) 2004-02-15 22:04:46 +00:00
Sam Lantinga
35b54bb44d *** empty log message *** 2004-02-15 21:47:42 +00:00
Sam Lantinga
7a4c5b56dc Showed how to toggle fullscreen mode if the API isn't supported 2004-02-15 20:31:27 +00:00
Sam Lantinga
82229edf7a *** empty log message *** 2004-02-15 18:45:45 +00:00
Patrice Mandin
d959ab9a52 -lgem must appear after -lldg 2004-02-15 08:32:25 +00:00
Sam Lantinga
03f36c7e20 *** empty log message *** 2004-02-15 03:42:56 +00:00
Sam Lantinga
166104b86e Programs should really be handling SIGPIPE themselves 2004-02-14 23:45:42 +00:00
Sam Lantinga
ace2ddf090 Date: Sat, 14 Feb 2004 14:52:40 +0200
From: "Mike Gorchak"
Subject: Batch of the QNX6 fixes for the SDL

1.  Updated readme.QNX
2.  Fixed crashes during intensive window updating under fast machines (got over 200 rectangles for update).
3.  Fixed double-buffered fullscreen modes, now it works as needed.
4.  Fixed Photon detection algorithm.
5.  Fixed HWSURFACE update function.
6.  Added SDL_PHOTON_FULLSCREEN_REFRESH environment variable support for control refresh rates under Photon.
7.  Added 640x400 fullscreen mode emulation via 640x480 (if videodriver not supports original 640x400 mode of course) shifted by 40 vertical pixels from begin, to center it. It's needed for some old DOS games which ran in doubled 320x200 mode.
8.  Added available video ram amount support.
8.  Added hardware surface allocation/deallocation support if current videomode and videodriver supports it.
9.  Added hardware filling support.
10. Added hardware blits support (simple and colorkeyed).

And I've added to testvidinfo test color-keyed blits benchmark (maybe need to add alpha blits benchmark too ?). Currently Photon not supporting any alpha hardware blittings (all drivers lack of alpha blitting code support, only software alpha blitting exist in photon, which is hundreds times slowest than the SDL's one). So I've not added the alpha support. I suppose new QNX 6.3 will have the hardware alpha support, so when it will be done, I'll add alpha support.
2004-02-14 20:22:21 +00:00
Patrice Mandin
738dd943de Important crash fix: system vectors for mouse/joystick were not restored 2004-02-14 10:12:27 +00:00
Sam Lantinga
9d287a8dc0 Update the version on the SDL shared library. Use SDL stub library for tests. 2004-02-14 06:04:41 +00:00
Sam Lantinga
ca2dfb384b Fixed typo in DirectFB driver (thanks Frank!) 2004-02-13 18:39:01 +00:00
Sam Lantinga
94f82d4c27 *** empty log message *** 2004-02-13 18:01:22 +00:00
Sam Lantinga
91639ced44 Date: Fri, 13 Feb 2004 17:03:16 +0100
From: Max Horn
Subject: Modifier key fix

The internal modifier state can get out of sync with reality. To
trigger this, do for example this:
  1) Launch an SDL app
  2) Alt-click on the desktop (this will hide the SDL app).
  3) Bring the SDL app back to the front
  4) SDL will still think alt is pressed (and as such will treat left
clicks like middle clicks). If you press and release alt, it'll be fine
again.

The attached patch cures this by rechecking the modifier state whenever
we process an event.
2004-02-13 17:57:16 +00:00
Sam Lantinga
be7b5ff3cb *** empty log message *** 2004-02-13 06:42:17 +00:00
Sam Lantinga
5a5ad9c13d Use sigaction instead of signal to preserve handler flags (thanks Matthew!) 2004-02-12 16:29:24 +00:00
Sam Lantinga
e3e858e237 Added support for remote XVideo (thanks Frederic!) 2004-02-12 16:05:30 +00:00
Sam Lantinga
df6ca16bde *** empty log message *** 2004-02-12 06:21:13 +00:00
Sam Lantinga
b3da7130ef Don't use hardware overlay by default (seems much faster this way) 2004-02-11 16:50:54 +00:00
Sam Lantinga
de583dca47 *** empty log message *** 2004-02-11 16:40:17 +00:00
Sam Lantinga
ca5bd19099 Date: Tue, 13 Jan 2004 19:25:37 +0300
From: Dmitry Yakimov
Subject: [SDL] [PATCH] SDL bug patch

  Let me introduce 2 fixes to SDL.

  1. Preventing great slowdown on fast machines while hardware
     flipping (it's obviously bug).
  2. Setting up 85 Hz of monitor if supported. The reason is that
     Win98 by default sets lowest frequency 60 Hz.
     And we can't set up maximum frequency because some users can have
     wrong monitor drivers.
     This is important for shareware and commercial programs.
2004-02-11 16:10:16 +00:00
Sam Lantinga
6a861cc7d9 Simplify code and clean up Valgrind warning 2004-02-11 07:26:29 +00:00
Sam Lantinga
6c019d967f Fixed static linking on MacOS X (thanks Max!) 2004-02-11 07:09:11 +00:00
Sam Lantinga
4e7e86bfb8 Updated projects with cpuinfo API 2004-02-10 17:34:38 +00:00
Sam Lantinga
f62a1eafb3 Date: Wed, 04 Feb 2004 13:51:56 +0100
From: Jens Leuschner
Subject: Small patch for libSDL

In newer XFree86 releases in the German keyboard the "AltGr"-Key no
longer produces the keysym "Mode_switch", instead it produces
"ISO_Level3_Shift".
I have created a small patch against SDL-1.2.6 (which cleanly applies to
the current CVS-SDL too) that makes SDL recognize ISO_Level3_Shift as
AltGR key.
2004-02-10 15:39:15 +00:00
Sam Lantinga
5d51c784d3 *** empty log message *** 2004-02-10 15:31:35 +00:00
Sam Lantinga
4c4d46200c Updated SDL HTML documentation 2004-02-10 15:15:40 +00:00