Commit graph

1843 commits

Author SHA1 Message Date
Sam Lantinga
fd8b91f982 Fixed bug #281
------- Comment #2 From Christian Walther 2006-07-23 07:37 [reply] -------

Wow, that was an interesting bug to chase. It was a timing issue: it seems that
for some reason, a certain time must pass between ShowMenuBar() being called in
QZ_UnsetVideoMode() and the application quitting. Before rev. 1885, this delay
was provided by the slow hand-coded fade. With the asynchronous Core Graphics
fading introduced in rev. 1885, that delay was no longer present (most of the
time) and the bug became apparent. Adding an SDL_Delay(100) somewhere between
ShowMenuBar() and the end of QZ_VideoQuit() lowered the frequency of the bug
appearing from "almost every time" to "very rarely" here.

However, there is another solution: doing the ShowMenuBar() before releasing
the captured display instead of afterwards. Apparently, no delay is necessary
in that case, and it looks nicer to me anyway because it is the reverse order
of the way things are set up in the beginning: capture display - set video mode
- hide menu bar - ... - show menu bar - reset video mode - release captured
display. So, this is what the attached patch does.

In addition, I've taken the liberty of
- removing some unused code that I forgot to remove in rev. 1885,
- fixing two warnings about undeclared functions in SDL_QuartzVideo.m by
including OpenGL.h (whose name is a bit misleading - it only declares CGL
stuff, so there's no interference with SDL_opengl.h).

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402115
2006-09-24 01:27:40 +00:00
Sam Lantinga
e37cb653ba Fixed bug #316
Looks like this is a long standing typo... is this code even used anymore?

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402113
2006-09-24 00:55:00 +00:00
Sam Lantinga
045a682ec0 Fixed bug #321
Hi,
if "configure" is given an explicit --libdir, the sdl-config still contains
the default "${exec_prefix}/lib" for runtime linker path.

That should be changed to $libdir, as this is where the library goes to...

Regards,
  Juergen

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402111
2006-09-24 00:43:36 +00:00
Sam Lantinga
2f28b8c5d0 Fixed bug #270
SDL_SetCursor returns void, not void*

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402109
2006-09-24 00:36:24 +00:00
Sam Lantinga
dd8038b0e4 Bumped the version in subversion to 1.2.12
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402108
2006-09-24 00:10:59 +00:00
Sam Lantinga
8460b069f6 Fixed bug #278
Added the GFX_Display to the wminfo structure, contributed by Eric

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402107
2006-09-24 00:08:28 +00:00
Sam Lantinga
6a16eb68dc Fixed bug #276
PlanarPixmapInfoYUV420 is a big endian structure.
Fix contributed by Jean-Charles BERTIN

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402106
2006-09-24 00:04:06 +00:00
Sam Lantinga
0b9d71091e --HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402104
2006-09-23 23:15:34 +00:00
Sam Lantinga
66bd610f04 Fixed bug #304
WinCE - refactoring of hardware buttons handling
Contributed by Dmitry Yakimov

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402103
2006-09-23 23:12:44 +00:00
Sam Lantinga
a71237840f Fixed bug #294
Can't build SDL 1.2.11(and svn) for Pocket PC 2003 with Visual Studio 2005
Fix contributed by Dmitry Yakimov

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402102
2006-09-23 23:07:52 +00:00
Patrice Mandin
9cc61d56c8 Forgot cpu boundaries
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402090
2006-09-16 12:00:03 +00:00
Patrice Mandin
f31a930c98 Save/restore fpu registers if needed
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402089
2006-09-16 11:50:34 +00:00
Patrice Mandin
336e30592d Add function to check FPU presence
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402088
2006-09-16 10:38:09 +00:00
Patrice Mandin
75df00ebdf Only saved non preserved registers
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402087
2006-09-16 09:15:11 +00:00
Patrice Mandin
c588ef3271 Only convert endianness if both src and dest are 16bits
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402086
2006-09-16 09:14:25 +00:00
Patrice Mandin
bd51c73283 Update to reflect driver changes
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402085
2006-09-15 21:26:36 +00:00
Patrice Mandin
ca12676b88 Use new keyboard mapping routines
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402084
2006-09-13 21:19:13 +00:00
Patrice Mandin
fc46c0ae5d Factorize keyboard mapping between drivers
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402083
2006-09-13 21:18:35 +00:00
Patrice Mandin
e5b239feec Allow grabing mouse by locking its position
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402078
2006-09-12 19:34:18 +00:00
Patrice Mandin
faf3d7ce00 Reenable xbios usage to get relative mouse motion
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402077
2006-09-12 19:33:33 +00:00
Patrice Mandin
8eba29d834 Allow mouse to be locked when grabbed with GEM driver
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402076
2006-09-12 19:28:54 +00:00
Patrice Mandin
7cfc406eb8 Disable MiNT thread usage and use hw access for updating DMA audio pointers
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402074
2006-09-12 19:20:50 +00:00
Patrice Mandin
d49f3ac1d0 Forgot to reshow mouse cursor when exiting grab/hide mode
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402071
2006-09-08 19:17:03 +00:00
Patrice Mandin
8d211fac77 /me dumb, sizeof(keymap) != number of elements
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402070
2006-09-07 20:52:31 +00:00
Patrice Mandin
473f24de3d Use correct function to free allocated mem
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402067
2006-09-05 19:31:48 +00:00
Ryan C. Gordon
b601827c97 Removed some new 1.3 symbols from code backported to 1.2.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402066
2006-09-03 21:34:11 +00:00
Ryan C. Gordon
212dbcb764 Backport from 1.3: most of the audio drivers can now handle data
conversion at a higher level when they can't open the hardware in the
 exact format requested.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402063
2006-09-01 22:50:24 +00:00
Patrice Mandin
d5e84bbf7c Add teamtap support (4 joypads adapter on 1 port)
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402010
2006-08-02 21:26:31 +00:00
Ryan C. Gordon
ce0491587b Patched to compile. Fixes Bugzilla #285.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%401980
2006-07-24 23:29:01 +00:00
Sam Lantinga
96afe9541c Updated the snapshot build target to reflect the new source location
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%401939
2006-07-10 21:23:11 +00:00
Sam Lantinga
c156efb73d SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%401937
2006-07-10 21:03:59 +00:00
Patrice Mandin
91a32b77a2 sdl.pc is in build directory, not source
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401925
2006-07-06 18:01:37 +00:00
Sam Lantinga
bcc7227e38 Include sdl.pc in the development RPM
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401915
2006-06-27 04:58:26 +00:00
Sam Lantinga
650269aca5 Added 1.2.11 patch notes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401914
2006-06-27 04:33:31 +00:00
Sam Lantinga
862de2d82b Fixed libiconv detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401911
2006-06-26 16:20:51 +00:00
Sam Lantinga
5b2feecb99 Fixed problem with nasm hidden visibility detection
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401909
2006-06-26 16:15:21 +00:00
Sam Lantinga
cb4f15a094 Almost added Mac OS X nasm support
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401905
2006-06-26 05:27:15 +00:00
Sam Lantinga
554dd3b64b ------- Comment #5 From Marc Peter 2006-06-25 18:03 [reply] -------
Created an attachment (id=142) [edit]
updated makefiles for 1.2.11 release

The new Watcom-Win32.zip
- includes the new testcursor test, and
- doesn't link to dxguid.lib anymore (by defining INITGUID for
SDL_dx5events.c),
  to fix issue with stack calling convention (-6s can now be used instead of
-6r
  in CFLAGS).

------- Comment #6 From Marc Peter 2006-06-25 18:12 [reply] -------
Created an attachment (id=143) [edit]
updated README.Watcom for 1.2.11

- lists new testcursor test
- mentions possibility to build with -6s (stack calling convention) instead
  of -6r (register calling convention)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401903
2006-06-26 01:33:53 +00:00
Sam Lantinga
36aa150ca6 Updated version to SDL 1.2.1
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401902
2006-06-25 18:26:15 +00:00
Sam Lantinga
8c7a772ffd Updated the version to 1.2.11
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401901
2006-06-25 18:07:34 +00:00
Sam Lantinga
59b92bf98c --HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401899
2006-06-25 17:14:39 +00:00
Sam Lantinga
2c01718695 Fixed including stdint.h with gcc on Win32
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401898
2006-06-25 17:12:08 +00:00
Sam Lantinga
d856d38658 Fix for bug #240
Christian Walther contributed Cocoa cursor code.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401897
2006-06-24 17:36:55 +00:00
Sam Lantinga
642baf6edb Fixed bug #258
Account for the menu height in AdjustWindowRectEx()

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401892
2006-06-24 04:30:01 +00:00
Sam Lantinga
684d11f9fd Fixed bug #255
Fixed memory leaks in the windib driver.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401890
2006-06-24 03:41:14 +00:00
Sam Lantinga
9f57178bfb Fixed bug #260
Fixed SDL_GL_SWAP_CONTROL on Windows, and the query on Linux

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401888
2006-06-24 01:59:43 +00:00
Sam Lantinga
ccd4d68be0 Default the X11 dynamically loading on if the OS loader loads libraries
with their private symbols hidden.  If that isn't the case, and someone
tries to enable it anyway, spit out a warning and don't let them do it.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401884
2006-06-23 08:39:05 +00:00
Ryan C. Gordon
90b3fbb429 Swizzle ALSA channels for 5.1 output to match DirectSound and CoreAudio.
Untested, but potentially fixes Bugzilla #110.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401883
2006-06-23 08:35:48 +00:00
Sam Lantinga
d9c54aecc1 Fixed bug #69
Hopefully this takes care of most of the audio dropouts in Windows

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401882
2006-06-23 08:15:47 +00:00
Sam Lantinga
f955c92364 Fixed bug #147
Only enable Unicode key events if Unicode translation is enabled.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401881
2006-06-23 04:27:55 +00:00