Commit graph

2144 commits

Author SHA1 Message Date
Sam Lantinga
4011f1ea6f Added patch-aj from NetBSD pkgsrc:
chunk 1:
avoid hardcoding nas paths; pkgsrc installs it somewhere else.
This part could probably be done better.

chunk 2:
-L/usr/lib is unnecessary

chunk 3:
Better DragonFly support.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402452
2007-07-10 04:41:50 +00:00
Sam Lantinga
d14434c607 Fixed signed/unsigned mismatch ... hmm, limited to 2 GB reads? Fix in SDL 1.3
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402451
2007-07-10 04:31:31 +00:00
Sam Lantinga
4b89904edb Added read-ahead support for Win32 file IO
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402450
2007-07-10 04:01:46 +00:00
Ryan C. Gordon
31d16a0542 Removed note about initializing mixing buffers.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402449
2007-07-09 00:26:21 +00:00
Ryan C. Gordon
40849ebe5f Reverted patch in revision #3139, since it changes behaviour, which isn't good
at this stage of 1.2.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402448
2007-07-09 00:25:31 +00:00
Sam Lantinga
619068cfc9 Applied patch from OpenBSD ports package
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402447
2007-07-08 22:58:33 +00:00
Sam Lantinga
ee60355872 Merged FreeBSD joystick patch
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402446
2007-07-08 22:14:37 +00:00
Sam Lantinga
bd653f8150 Fixed bug #437
Some X servers advertise the DGA extension don't support DGA1 anymore.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402445
2007-07-08 20:38:36 +00:00
Sam Lantinga
d3ad0e277e Fixed bug #451
SDL_memset4 copies a 32-bit value, not an 8-bit value.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402443
2007-07-08 14:24:27 +00:00
Sam Lantinga
89fa633402 Fixed configure warning about datarootdir
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402441
2007-07-08 05:58:16 +00:00
Sam Lantinga
c0116871a6 Fixed typo... did somebody not compile this before submitting a patch?
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402440
2007-07-08 04:07:36 +00:00
Ryan C. Gordon
6a51107ae1 This looks like it might hit Bugzilla #441, too, so we'll play it safe.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402439
2007-07-08 01:55:46 +00:00
Ryan C. Gordon
f6d3643ebb Clear the NOFRAME and RESIZABLE flags in the X11 target before setting their
new values, so multiple calls to SetVideoMode() that toggle these will end
 up with the right data.

   Fixes Bugzilla #441.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402438
2007-07-08 01:50:26 +00:00
Ryan C. Gordon
2a5d0ac5c9 Fixed compiler warning (gcc w/ -Wall) for using getpid() and kill() without
their proper headers included.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402436
2007-07-08 01:36:16 +00:00
Ryan C. Gordon
f5f620d183 Fixed compiler warning (gcc w/ -Wall) for unused variable, and checked for
error return code too.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402435
2007-07-08 01:35:50 +00:00
Sam Lantinga
69a0d935d9 Use GL direct updates when possible
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402434
2007-07-07 19:22:27 +00:00
Sam Lantinga
1ed61fec32 Fixed bug #360
Fixed fullscreen video modes and improved the mouse grab code.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402433
2007-07-07 19:20:28 +00:00
Sam Lantinga
e2d89e3012 Reverted mousewheel support in 1.2, since it breaks binary compatibility.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402430
2007-07-06 13:39:03 +00:00
Sam Lantinga
cf458d63c9 Ugh... actually changing what buttons are returned to the application. Maybe we should wait until SDL 1.3 for horizontal scrolling support?
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402429
2007-07-06 13:32:20 +00:00
Sam Lantinga
79ce9cd629 Fixed bug #382
Added horizontal scrolling support: SDL_BUTTON_WHEELLEFT (6) and SDL_BUTTON_WHEELRIGHT (7)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402427
2007-07-06 09:15:43 +00:00
Sam Lantinga
4722d6e917 Fixed bug #322
Need to resync the keyboard state every time we set a video mode, since
the code in SDL_video.c is clearing the keyboard state.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402426
2007-07-06 07:45:33 +00:00
Sam Lantinga
432dd128e4 Fixed Windows build
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402425
2007-07-05 07:11:05 +00:00
Sam Lantinga
12157bf17d Fixed bug #436
The install-lib target should depend on the libraries that are built.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402423
2007-07-05 06:34:51 +00:00
Ryan C. Gordon
c27d0b332d Added Markus Mertama to the CREDITS file for the S60 port.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402419
2007-07-05 04:53:36 +00:00
Ryan C. Gordon
7834147dc6 Minor updates to the Symbian/S60 port, plus project files that weren't
previously imported.

   Fixes Bugzilla #433.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402418
2007-07-05 04:51:09 +00:00
Ryan C. Gordon
2e69a8f550 Added notes about audio callback behaviour.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402416
2007-07-05 02:53:40 +00:00
Ryan C. Gordon
268bdb1cc1 Fixed our own test app. :)
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402413
2007-07-05 02:44:54 +00:00
Ryan C. Gordon
2a9137296f Don't initialize the audio buffer passed to the application's audio callback,
since they are expected to entirely fill it with data or silence.

For legacy apps that might expect the buffer to already have silence and thus
 may not fill the buffer in the callback, there's an environment variable to
 expose the old behaviour.

  Fixes Bugzilla #416.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402411
2007-07-05 02:24:36 +00:00
Sam Lantinga
2ada4fdd9b Oops, didn't mean to commit this...
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402410
2007-07-04 15:22:47 +00:00
Sam Lantinga
f4a253ef63 Fixed bug #450
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402409
2007-07-04 15:22:07 +00:00
Sam Lantinga
6450125a74 Fixed bug #447
Xlib uses the native locale, not latin1

... the question is... what does the server use? :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402407
2007-07-04 07:54:06 +00:00
Sam Lantinga
13be73d999 Fixed bug #349
Solaris doesn't support the LATIN1 character set alias.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402405
2007-07-04 04:27:47 +00:00
Ryan C. Gordon
84063eb26e Fixed yasm/nasm warning.
Fixes Bugzilla #446.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402402
2007-07-03 09:53:26 +00:00
Sam Lantinga
75823323ed Fixed bug #398
You can use SetColors() before the video mode has been set.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402401
2007-07-03 09:39:09 +00:00
Sam Lantinga
17349bcd15 Added some missing patch notes - Ryan, feel free to add them for your commits
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402400
2007-07-03 09:22:57 +00:00
Sam Lantinga
6a44c15be5 Added patch note for fixing bug 335
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402399
2007-07-03 09:16:14 +00:00
Sam Lantinga
30606315b4 Fixed bug #335
Use SetSystemPaletteUse() to get better access to the system palette.

We can still do better palette matching in the case where we aren't
using fullscreen mode or a hardware palette, but that can wait for
another day. :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402398
2007-07-03 09:05:51 +00:00
Sam Lantinga
2ec93d3f0f Fixed assembly relocation problems, so we can check for NASM on Mac OS X.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402396
2007-07-02 02:45:52 +00:00
Sam Lantinga
a304f049b3 OpenGL is in the X11 directory on some systems.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402394
2007-06-30 08:09:53 +00:00
Sam Lantinga
b8cfbcff8f Fixed 64-bit compile issues
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402393
2007-06-30 03:47:50 +00:00
Ryan C. Gordon
f6513ee758 Corrected mismerge of XIM patch, thanks Alissa!
Fixes Bugzilla #429.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402391
2007-06-28 19:29:26 +00:00
Sam Lantinga
9a001803a5 iconv() doesn't write to the data, just make compilers happy
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402389
2007-06-28 08:33:59 +00:00
Sam Lantinga
2fd06952d1 Whoops, need to actually copy inbuf
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402387
2007-06-28 06:53:09 +00:00
Sam Lantinga
cc3fe2e639 Okay, apparently the newer standard specifies char** for the inbuf
parameter to iconv()
(See http://lists.debian.org/debian-glibc/2004/05/msg00006.html)

I'm casting in the general case, but I added a non-const codepath in
case it matters on some platform.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402386
2007-06-28 06:47:35 +00:00
Sam Lantinga
aa3a251d43 Better fix for bug 419
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402385
2007-06-28 05:35:50 +00:00
Ryan C. Gordon
8915c4f95b Removed textrels from hermes code.
Partially fixes Bugzilla #418.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402383
2007-06-27 10:12:49 +00:00
Ryan C. Gordon
d95716b5de Updated "What's New" docs.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402382
2007-06-26 20:04:15 +00:00
Ryan C. Gordon
6848868c27 windib target can now control screensaver with SDL_VIDEO_ALLOW_SCREENSAVER.
Fixes Bugzilla #415.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402381
2007-06-26 20:02:40 +00:00
Ryan C. Gordon
9797c48fd7 Added some new XIM symbols to the dynamic X11 function list.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402380
2007-06-26 00:57:09 +00:00
Ryan C. Gordon
9289f20b49 Whoops, patched to compile.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402379
2007-06-25 20:08:55 +00:00