Commit graph

8252 commits

Author SHA1 Message Date
Sam Lantinga
97c8173820 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"
Subject: All QNX patches

whole patches concerning QNX. Almost all code has been rewritten by Julian
and me. Added initial support for hw overlays in QNX and many many others
fixes.

P.S. This patches has been reviewed by Dave Rempel from QSSL and included in
SDL 1.2.5 distribution, which coming on 3rd party CD for newest 6.2.1
version of QNX, which will be available soon.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40572
2003-01-20 01:38:37 +00:00
Sam Lantinga
b38a873c3a ate: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"

added support for checking libtool's version of libdl for dlopen.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40571
2003-01-20 01:37:07 +00:00
Sam Lantinga
43155b2e60 Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"

added help and options -mono to force monochrome RGB2YUB conversion and
-lum <percent> - luminance of image during conversion. Also rewritten code
which moves overlay into window. Now it depends on window size.
Also fully rewritten -scale option, image now scaling from 50% from center
of screen until border of window is reached - it really tests scaler, old
-scale test doesn't test downscale.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40570
2003-01-20 01:36:28 +00:00
Sam Lantinga
42057d5d2d Date: Thu, 16 Jan 2003 13:48:31 +0200
From: "Mike Gorchak"

added showing of type of the track, when adding -list arg

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40569
2003-01-20 01:35:44 +00:00
Sam Lantinga
cfca6d1cc7 From: David Hedbor
Subject: Qtopia patches (input grabbing and iconify)

Ok, here's a patch that adds support for SDL_WM_GrabInput (default
state is "ungrabbed") and SDL_WM_IconifyWindow. Also has some other
tweaks such as taking additional steps to clean up when exiting
(bypassing certain bugs in some versions of Qtopia and/or OPIE) and it
also maps Key_F33 to Key_Return (this is the Zaurus 'ok' key).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40568
2003-01-20 01:08:20 +00:00
Sam Lantinga
879224b6c7 Enable the glXGetProcAddressARB code (fixes problems with NVidia drivers)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40567
2003-01-20 00:25:28 +00:00
Sam Lantinga
f8edfec204 David MacCormack fixed a bug in window sizing with Windows menus
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40566
2003-01-20 00:17:01 +00:00
Sam Lantinga
7ae540f3cc Test of the CVS mailing list
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40565
2003-01-19 23:01:35 +00:00
Ryan C. Gordon
f39381e3e9 Massive Quartz input enhancements from Darrell Walisser. His email:
Enclosed is a patch that addresses the following:

--Various minor cleanups.
Removed dead/obsolete code, made some style cleanups

--Mouse Events
Now keep track of what button(s) were pressed so we know when to send
the mouse up event. This fixes the case where the mouse is dragged
outside of the game window and released (in which case we want to send
the mouse up event even though the mouse is outside the game window).

--Input Grabbing
Here is my take on the grabbing situation, which is the basis for the
new implementation.

There are 3 grab states, ungrabbed (UG), visible (VG), and invisible
(IG). Both VG and IG keep the mouse constrained to the window and
produce relative motion events. In VG the cursor is visible (duh), in
IG it is not. In VG, absolute motion events also work.

There are 6 actions that can affect grabbing:

1. Set Fullscreen/Window (F/W). In fullscreen, a visible grab should do
nothing. However, a fullscreen visible grab can be treated just like a
windowed visible grab, which is what I have done to help simplify
things.

2. Cursor hide/show (H/S). If the cursor is hidden when grabbing, the
grab is an invisible grab. If the cursor is visible, the grab should
just constrain the mouse to the window.

3. Input grab/ungrab(G/U). If grabbed, the cursor should be confined to
the window as should the keyboard input. On Mac OS X, the keyboard
input is implicitly grabbed by confining the cursor, except for
command-tab which can switch away from the application. Should the
window come to the foreground if the application is deactivated and
grab input is called? This isn't necessary in this implementation
because the grab state will be asserted upon activation.

Using my notation, these are all the cases that need to be handled
(state + action = new state).

UG+U = UG
UG+G = VG or IG, if cursor is visible or not
UG+H = UG
UG+S = UG

VG+U = UG
VG+G = VG
VG+H = IG
VG+S = VG

IG+U = UG
IG+G = IG
IG+H = IG
IG+S = VG

The cases that result in the same state can be ignored in the code,
which cuts it down to just 5 cases.

Another issue is what happens when the app loses/gains input focus from
deactivate/activate or iconify/deiconify. I think that if input focus
is ever lost (outside of SDL's control), the grab state should be
suspended and the cursor should become visible and active again. When
regained, the cursor should reappear in its original location and/or
grab state. This way, when reactivating the cursor is still in the same
position as before so apps shouldn't get confused when the next motion
event comes in. This is what I've done in this patch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40564
2002-12-27 20:52:41 +00:00
Ryan C. Gordon
273586bdfa Added some code to toggle fullscreen and input grab for testing... --ryan.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40563
2002-12-20 03:37:28 +00:00
Sam Lantinga
8e0540e5cf Date: Sat, 14 Dec 2002 13:33:05 -0500
From: Darrell Walisser
Subject: Re: crash in SDL / OSX

> Yes, compose keys and other "dead" keys should have unicode 0.
> As a hack, if you get multiple composed characters, you can send the
> sequence with a valid unicode and a keysym of 0.  It's because of
> things like this that I'm separating the key and char events in SDL 2.0

I've done this and here's the patch.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40562
2002-12-15 09:09:31 +00:00
Ryan C. Gordon
e2cbed54eb Moved some cleanup stuff to QZ_VideoQuit() from QZ_UnsetVideoMode()...fixes
cursor hiding, etc when calling SDL_SetVideoMode() multiple times. Fixed by
 Darrell Walisser.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40561
2002-12-13 21:09:52 +00:00
Sam Lantinga
a31f0acba3 Fixed invalid memory access in DGA video driver (thanks ldb!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40560
2002-12-11 05:52:28 +00:00
Sam Lantinga
faab4adb3a Fixed left/right shift detection on Windows (thanks Mike!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40559
2002-12-11 05:47:32 +00:00
Sam Lantinga
cdde594dbc Updated Atari port for new system headers (thanks Patrice!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40558
2002-12-07 06:54:47 +00:00
Sam Lantinga
1a5622ba5c Fixed compile error if there is no X11 shared memory support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40557
2002-12-07 06:51:03 +00:00
Sam Lantinga
e1ecdaaad4 From: Darrell Walisser
Subject: Re: [SDL] OS X and power save

Here ya go. This works just fine. One might complain that it doesn't
generate the event until after wake as completed (there is about 5
seconds between the screen coming up and the expose event), but I think
that's OK.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40556
2002-12-07 06:48:49 +00:00
Sam Lantinga
241cf39101 Linux joystick cleanups from Alan Swanson
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40555
2002-12-02 03:11:36 +00:00
Sam Lantinga
72f052bbbc There's a bug in the VC7 optimizer relating to the duff loop optimization
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40554
2002-12-02 02:40:58 +00:00
Sam Lantinga
180f7d626c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40553
2002-12-02 02:35:58 +00:00
Sam Lantinga
2cd7450f7b Doh! Compile error if there was no X11 shared image support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40552
2002-12-02 01:47:03 +00:00
Sam Lantinga
dc970b9478 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40551
2002-12-02 01:10:20 +00:00
Sam Lantinga
8a1e3bca3a *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40550
2002-11-24 20:44:08 +00:00
Sam Lantinga
ef58fed6a9 Open ALSA devices in non-blocking mode (thanks Aleksey!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40549
2002-11-17 20:02:26 +00:00
Sam Lantinga
f741db3f7d Open the ALSA devices in non-blocking mode (thanks Aleksey!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40548
2002-11-17 20:01:54 +00:00
Sam Lantinga
57f5a82852 Updated for DirectDB 0.9.15 (thanks Denis!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40547
2002-11-17 19:36:49 +00:00
Sam Lantinga
83cb8c4ace Save the full pathname for stdout.txt and stderr.txt
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40546
2002-11-17 19:30:44 +00:00
Sam Lantinga
9f15e5f2c2 Fixed bsd joystick detection ... again (thanks Wilbern)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40545
2002-11-17 19:03:05 +00:00
Sam Lantinga
5c63a69080 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40544
2002-11-17 18:59:10 +00:00
Sam Lantinga
87040b3a85 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40543
2002-11-17 17:56:14 +00:00
Sam Lantinga
4135293105 Support 1-bit alpha on surfaces passed to SDL_WM_SetIcon() (thanks Glenn!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40542
2002-11-17 17:55:45 +00:00
Sam Lantinga
bb1c6662b5 Greatly improved X11 DGA video speed (thanks Cezary!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40541
2002-11-09 06:20:46 +00:00
Sam Lantinga
994f095e2e Added MMX audio mixing code for gcc (thanks Stephane!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40540
2002-11-09 06:13:28 +00:00
Sam Lantinga
ef6f54e336 Added support for testing video flipping with graywin.c
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40539
2002-11-09 05:52:49 +00:00
Sam Lantinga
7af0922b86 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40538
2002-11-09 05:51:13 +00:00
Sam Lantinga
6083c21174 Fixed potential dropped events under DirectInput
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40537
2002-11-09 05:47:24 +00:00
Sam Lantinga
c78b556d00 Fixed alpha blending bug (thanks Glenn!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40536
2002-10-22 21:41:21 +00:00
Sam Lantinga
c3d2c29754 Turn on enums always ints for CodeWarrior (thanks Darrell!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40535
2002-10-22 21:35:49 +00:00
Sam Lantinga
f3560dea28 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40534
2002-10-20 00:15:33 +00:00
Sam Lantinga
9e98e499b1 Return an error with color fills on less than 8 bpp surfaces.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40533
2002-10-15 05:22:50 +00:00
Sam Lantinga
d0b835b8ee Fixed joystick detection problem on Windows XP (thanks Maciej!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40532
2002-10-15 04:26:20 +00:00
Ryan C. Gordon
5560538aa2 Added check for AMD x86-64 ("Hammer") architecture in byte order determination.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40531
2002-10-14 05:05:04 +00:00
Sam Lantinga
60c83fadc7 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40530
2002-10-11 08:45:07 +00:00
Sam Lantinga
9735064647 Removed unused function declarations
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40529
2002-10-11 08:41:48 +00:00
Sam Lantinga
fef7027b52 Fixed mouse warp position bug with offset video modes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40528
2002-10-11 08:09:26 +00:00
Sam Lantinga
b749b25a06 Fixed a crash blitting RLE surfaces to RLE surfaces
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40527
2002-10-11 07:56:36 +00:00
Sam Lantinga
a4123bfdb2 Removed an unnecessary header
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40526
2002-10-11 07:55:22 +00:00
Sam Lantinga
8d2185bb73 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40525
2002-10-08 16:29:01 +00:00
Sam Lantinga
e97f13eb3b Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40524
2002-10-08 16:25:23 +00:00
Sam Lantinga
798b601874 Updated the Project Builder stationary with SDLMain.*
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40523
2002-10-08 15:48:21 +00:00