Commit graph

2208 commits

Author SHA1 Message Date
Sam Lantinga
7cfdd8efb6 I think this fixes bug #261
Make sure that you don't use a wgl function after the context is deleted.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402476
2007-07-11 05:43:39 +00:00
Sam Lantinga
3530814620 Updated SVN checkout instructions
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402473
2007-07-10 20:15:31 +00:00
Ryan C. Gordon
3183821d09 Set the error after freeing stuff, just in case one of those functions resets
the error string.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402471
2007-07-10 19:03:44 +00:00
Ryan C. Gordon
a37ebaa8e6 Reverted most of r3200:3201: a malloc() failure would leave a zero-byte
file if opening for write.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402470
2007-07-10 18:56:08 +00:00
Sam Lantinga
bfef646388 Simplified Win32 file opening code
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402468
2007-07-10 16:01:46 +00:00
Sam Lantinga
5d9a9d6e7f Sort of fixed NAS detection on NetBSD - requires that /usr/pkg be in your include/linker/library path
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402466
2007-07-10 15:39:14 +00:00
Ryan C. Gordon
c64b5ebfd9 Whoops, reverted changes that shouldn't have been committed with #3197.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402465
2007-07-10 15:04:49 +00:00
Ryan C. Gordon
9a699f8d15 Don't leak the readahead buffer if win32 rwops file open fails.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402464
2007-07-10 15:03:19 +00:00
Sam Lantinga
9c48629d64 Backported the NAS detection from SDL 1.3, replacing the broken NetBSD patch
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402462
2007-07-10 14:16:44 +00:00
Ryan C. Gordon
8b10fbc3a1 Added a '*/' for whiney compilers that don't like comments-in-comments.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402461
2007-07-10 13:52:07 +00:00
Sam Lantinga
e9910211c8 Added patch note for file I/O speedup
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402460
2007-07-10 05:37:53 +00:00
Sam Lantinga
86d88abf59 Fixed bug #453
That's silly, we included <asm/page.h> even though we know we have getpagesize()

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402459
2007-07-10 05:35:33 +00:00
Sam Lantinga
65c53ab18b I'm reverting this patch...
I'm suspicious, since the X11 driver doesn't appear to need it. :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402455
2007-07-10 04:49:00 +00:00
Sam Lantinga
7ec71685d6 Merged some patches from NetBSD pkgsrc:
Added two patches for Solaris 8. The X11 implementation does not
define the xEvent structure unless NEED_EVENTS is defined.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402454
2007-07-10 04:47:08 +00:00
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