606 Commits

Author SHA1 Message Date
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
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