Commit graph

8252 commits

Author SHA1 Message Date
Ryan C. Gordon
15a4f84834 Whoops...typo prevented compiling. Fixed.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40622
2003-05-22 07:12:36 +00:00
Ryan C. Gordon
ae7a1484b4 Find just joysticks and gamepads (as opposed to, say, USB Audio devices), in
the MacOSX/Darwin joystick initialization code.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40621
2003-05-22 06:41:54 +00:00
Ryan C. Gordon
e52f9bb94e Disable MacOS X screensaver for duration of application run by triggering a
"UsrActivity" alert every five seconds in the Quartz PumpEvents implementation.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40620
2003-05-22 06:28:40 +00:00
Sam Lantinga
e25d3d0c78 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40619
2003-05-03 19:48:37 +00:00
Sam Lantinga
313819cc86 MacOS X joystick fix
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40618
2003-05-03 15:36:10 +00:00
Sam Lantinga
e2b0c74800 Oops...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40617
2003-04-26 06:40:01 +00:00
Sam Lantinga
b28b2bb4c4 Date: Thu, 17 Apr 2003 23:27:34 -0400
From: Darrell Walisser
Subject: Yet another OS X cursor bug

The synopsis:

1. Call SDL_ShowCursor(0);
2. Call SDL_SetVideoMode();
3. Call SDL_GetEvent();
3. Call SDL_ShowCursor(1);

The result: Sometimes the cursor doesn't come back! Ack! Oddly enough,
it does come back when mousing over the dock or clicking in the menu
bar. But that's besides the point.

The reason why this is happening is a flaw in the handling of
activation/deactivation events. The short explanation is that the
HideCursor() and ShowCursor() calls must be balanced, but if the cursor
was initially hidden, HideCursor() was called again on the activate
event - so now the next ShowCursor() fails (as does the next, and the
next, for some reason).

So, here's the patch. All it does is keep track of the
HideCursor()/ShowCursor() calls so that they will always be balanced.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40616
2003-04-20 05:41:16 +00:00
Sam Lantinga
bedc128ac0 Date: Wed, 9 Apr 2003 18:21:33 -0230
From: Stephen Anthony <stephena@roadrunner.nf.net>
Subject: [SDL] First patch concerning  4.3 and refresh rates

OK, here's my first draft of the patch for the above subject.

A short explanation:

X 4.3 introduces many more modelines than older versions.  This would be
fine, except it introduces many modes with the *same* resolution but
different refresh rates.  And SDL won't necessarily pick the one with the
highest refresh rate.

So this patch restores SDL to X 4.2 functionality.  That is, there is only
ever one refresh rate *per* resolution, and it is the highest possible.
This functionality can be totally disabled by using the environment
variable 'SDL_VIDEO_X11_USE_ALL_MODES' set equal to 1.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40615
2003-04-20 05:36:52 +00:00
Sam Lantinga
c8ea4a77eb Added MacOS X CD-ROM audio support (thanks Max and Darrell)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40614
2003-04-15 16:33:56 +00:00
Sam Lantinga
e44379a4b6 Fixed video intitialization problem on Qtopia (thanks David!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40613
2003-04-15 16:04:31 +00:00
Sam Lantinga
1d8cdd5504 Date: Wed, 9 Apr 2003 01:03:25 -0400 (EDT)
From: "Matthew N. Dodd"
Subject: SDL patch: FreeBSD joystick support.

This patch deals with the recent changes in FreeBSD.

We're making an effort not to diverge our libusbhid from NetBSD's.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40612
2003-04-15 16:02:08 +00:00
Sam Lantinga
108052b020 Date: Mon, 14 Apr 2003 22:08:27 +0100
From: Patrice Mandin
Subject: [SDL][PATCH] 2 patches for sdl

Here are 2 patches for SDL:

- One is to put the dummy video drivers at the end of the
video drivers list. It gave me problems, when
SDL_VIDEODRIVER is not set, and the dummy driver is used
instead of the platform's driver, just because it is
always available. So the dummy driver must always be at
the end of the list. I suppose picogui and dc video
drivers also don't work.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40611
2003-04-15 15:46:56 +00:00
Sam Lantinga
b76da3f35f *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40610
2003-03-22 17:39:26 +00:00
Sam Lantinga
c605928016 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40609
2003-03-09 21:38:18 +00:00
Sam Lantinga
429aea3075 Date: Sat, 1 Mar 2003 16:13:57 -0500
From: Wilbern Cobb
Subject: OpenBSD/sparc64 video init fix

This patch fixes remote X sessions on OpenBSD/sparc64.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40608
2003-03-06 06:22:33 +00:00
Sam Lantinga
88d4df37f2 Date: Fri, 28 Feb 2003 22:47:56 +0100
From: Denis Oliver Kropp
Subject: Makefile.am fix

I fixed the Makefile.am which lacked many defines.
With this patch SDL on DirectFB doesn't crash on
startup immediately.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40607
2003-03-06 06:18:24 +00:00
Sam Lantinga
205a296adf IRIX patches from Andrea Suatoni
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40606
2003-03-06 06:12:41 +00:00
Sam Lantinga
bb0214c5a3 Date: Mon, 24 Feb 2003 16:31:25 -0500
From: Ragnvald "Despair" Maartmann-Moe IV
Subject: SDL x11 video mode selection bug

Hi, I've found an oddity with video mode selection. I recently added a bunch of
oddball video modes to my XF86Config, to support weird resolutions xine &
mplayer need if I don't want to beat my cpu up with video scaling.

Since adding them, SDL started picking the biggest video mode it could find
that matched the height constraint. Getting a narrow vertical strip of
QuakeForge (I code for the project, so needless to say it's my favorite test)
in the middle of an 800x480 screen, instead of the 640x480 I asked for
annoys me tremendously.

So here's a patch that tries a bit harder to get an exact match. I didn't
touch the XiG section, since I can't test that, but I'd bet a similar patch
would prevent similar problems there.

--Ragnvald "Despair" Maartmann-Moe IV

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40605
2003-03-06 06:02:16 +00:00
Sam Lantinga
53598ce435 From: Jonathan Atkins
Subject: testoverlay...

here's a fun one:
./testoverlay -scale -h

it seems to print argv[optind-1] as the program name...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40604
2003-03-06 05:57:29 +00:00
Sam Lantinga
0f60451463 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40603
2003-03-05 05:28:09 +00:00
Sam Lantinga
c1364be120 Updated Visual C++ projects
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40602
2003-02-26 16:58:49 +00:00
Sam Lantinga
9757a96a3c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40601
2003-02-26 07:27:32 +00:00
Sam Lantinga
0595869199 Fixed building thread code under BSD/OS (thanks Steven!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40600
2003-02-21 17:16:38 +00:00
Sam Lantinga
93db5107c9 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40599
2003-02-12 15:24:39 +00:00
Sam Lantinga
68c795de40 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40598
2003-02-10 00:39:33 +00:00
Sam Lantinga
f813db750f CVS should ignore files automatically generated by building on MacOS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40597
2003-02-09 02:58:40 +00:00
Sam Lantinga
b1b661bc3f Don't warp the mouse when a video mode hasn't been set
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40596
2003-02-07 05:47:15 +00:00
Sam Lantinga
582b9152ff Added support for HID sliders wheels and dials on MacOS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40595
2003-02-04 21:05:20 +00:00
Sam Lantinga
5fbc9a0e44 Date: Fri, 31 Jan 2003 15:17:30 +0100
From: Patrice Mandin
Subject: [SDL] Small patches for SDL

- One for SDL, which removes check for SDL_VIDEODRIVER in the Atari video
drivers. It is unnecessary 'cause it is done in SDL_video.c

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40594
2003-02-04 21:01:03 +00:00
Sam Lantinga
9c821f6677 Fixed crash in SDL_SetIcon() under Quartz (thanks Darrell!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40593
2003-02-01 20:33:59 +00:00
Sam Lantinga
602b6f286b Allow icons of any size
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40592
2003-02-01 20:32:44 +00:00
Sam Lantinga
a31d3a0a31 Fixed a problem with dlltool when building under MSYS on Windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40591
2003-02-01 20:30:55 +00:00
Sam Lantinga
94474c2e62 Removed obsolete Linux joystick code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40590
2003-02-01 20:25:34 +00:00
Sam Lantinga
b489d8c975 Darrell added support for emulated SDL_DOUBLEBUF on MacOSX
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40589
2003-02-01 19:59:23 +00:00
Sam Lantinga
cfe943448d Added code to testsprite to detect tearing when flipping
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40588
2003-02-01 19:56:45 +00:00
Sam Lantinga
c52f887171 Missing has been re-added
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40587
2003-02-01 19:50:22 +00:00
Sam Lantinga
b2f587c20c Working around broken objective C support - Take 2
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40586
2003-02-01 19:47:43 +00:00
Sam Lantinga
07bb3fe79a *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40585
2003-02-01 19:27:05 +00:00
Sam Lantinga
e77a90c53e Doh, this doesn't work on all automake versions.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40584
2003-02-01 19:01:26 +00:00
Sam Lantinga
9e73732b18 Worked around objective C brokenness in Cygwin's automake
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40583
2003-02-01 18:58:42 +00:00
Sam Lantinga
957ff24457 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40582
2003-01-26 11:41:37 +00:00
Sam Lantinga
dc74b15514 If a double-buffered surface was requested, and a plain hardware surface
was returned, we should create a shadow surface.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40581
2003-01-26 04:30:18 +00:00
Sam Lantinga
a720fc3e74 Added some language bindings to the README
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40580
2003-01-21 09:36:41 +00:00
Sam Lantinga
d41712f689 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40579
2003-01-21 09:18:20 +00:00
Sam Lantinga
d24761f2db Fixed header docs for the joystick hat position
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40578
2003-01-21 05:33:34 +00:00
Sam Lantinga
9e546b8295 Fixed QZ_ToggleFullScreen() return value (thanks Max!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40577
2003-01-21 05:29:50 +00:00
Sam Lantinga
a9a711e9f8 Applied Corona688's patch for output redirection on Windows CE
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40576
2003-01-21 04:15:21 +00:00
Sam Lantinga
a6b0410071 Cth converted the MMX audio mixing routines to VC++ syntax
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40575
2003-01-20 16:01:20 +00:00
Sam Lantinga
888dba9db7 Fixed build error on BeOS
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40574
2003-01-20 02:34:04 +00:00
Sam Lantinga
7670ddcd79 Mike Nordell _really_ fixed Win32 windib shift state handling this time. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40573
2003-01-20 02:11:07 +00:00