Commit graph

2144 commits

Author SHA1 Message Date
Sam Lantinga
0d40fac125 Added support for building version.rc in Windows build.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402548
2007-07-16 03:27:26 +00:00
Sam Lantinga
c44a317291 Fixed bug #428
This fix is overkill, but approved by Doug Lea, and he'll be releasing a
new version of his malloc.c sometime next month.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402546
2007-07-16 00:07:02 +00:00
Sam Lantinga
be91b51038 Fixed bug #457
Don't crash if passed a NULL overlay.  The app crashes anyway, since
it's not checking the return value of the create call, but at least it's
not crashing in SDL anymore. :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402543
2007-07-15 21:50:07 +00:00
Sam Lantinga
5adb9f2f7e Fixed building on Windows CE
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402542
2007-07-15 19:43:54 +00:00
Sam Lantinga
adddf96af5 Added a patch note for the Mac OS X cursor bug
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402541
2007-07-15 19:00:22 +00:00
Ryan C. Gordon
d069678465 Merged r3295:3296 from trunk/SDL: testjoystick reusing "joystick" variable.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402540
2007-07-15 17:26:50 +00:00
Sam Lantinga
2fe61699aa Final fix for bug #373
------- Comment #13 From Christian Walther 2007-07-15 10:04:56 [reply] -------
Created an attachment (id=229) [details]
patch to reinstate the SDL cursor after an NSApplicationActivatedEvent

Oops, you're right. My testcursor.c has diverged so far from the original that
I missed that. In fact, now that I think about it, that issue isn't even
addressed by the cursor rectangle patch - it is only concerned with windowed
mode (and fixes the problem there as a side effect). The problem in fullscreen
is still the same as before. How about the attachment for a fix? (I can confirm
that [NSCursor set] doesn't seem to have any effect when called from
QZ_DoActivate().)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402538
2007-07-15 17:22:39 +00:00
Ryan C. Gordon
53dae52ecb Dump more information about each joystick in testjoytick.c
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402536
2007-07-15 16:33:45 +00:00
Sam Lantinga
33dff0e240 Patch from Christian Walther
Yes, the idea to use a cursor rectangle instead of [NSCursor set] has occurred
to me too, and it does seem to be the most elegant way. Here's my attempt at an
implementation

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402535
2007-07-15 15:58:00 +00:00
Ryan C. Gordon
3b3b5c0429 An attempt at fixing Bugzilla #454.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402534
2007-07-15 14:14:45 +00:00
Sam Lantinga
0468ab7f14 I think this fixes bug #454
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402533
2007-07-15 14:05:31 +00:00
Sam Lantinga
1012f68044 Use SDL C functions (fixes security warnings on OpenBSD)
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402531
2007-07-14 21:09:54 +00:00
Sam Lantinga
585eb48cad More improvements for bug #373
Show the SDL cursor in the window and the arrow cursor outside the window.

This is also supposed to show the SDL cursor when activated, but that code
isn't working yet...

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402530
2007-07-14 08:27:06 +00:00
Sam Lantinga
73b9604f5d Fixed bug #373
Patch contributed from Transgaming's Cider project
- create a window and view in fullscreen mode so the cursor can be set

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402529
2007-07-14 08:00:50 +00:00
Ryan C. Gordon
f162e3a203 Mac OS X/x86 won't build the MMX/YUV inline assembly without optimizations
enabled (not enough registers), so for now, we only build it if we see
 the __OPTIMIZE__ #define, which GCC provides when you build at -O1 or higher.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402527
2007-07-14 07:26:34 +00:00
Ryan C. Gordon
cdd5782864 Reverted r3255:3256. Don't actually need it unless the build is broken. :)
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402526
2007-07-14 07:06:46 +00:00
Ryan C. Gordon
e95642a890 Removed some unused static variables.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402523
2007-07-14 07:01:38 +00:00
Ryan C. Gordon
9445a05944 Mac OS X thinks we want a function call to SDL_memcpy() and not memcpy() here,
thanks to macro replacement issues.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402521
2007-07-14 06:45:01 +00:00
Patrice Mandin
739cd03b1d Call GEM_CheckMouseMode everytime something may change mouse form, and do it properly
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402513
2007-07-13 18:44:43 +00:00
Patrice Mandin
5aafadda16 Simplify setting window title
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402511
2007-07-13 16:09:16 +00:00
Sam Lantinga
03537c7353 Update default cross-compile install prefix for the latest mingw toolchain
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402510
2007-07-13 03:57:40 +00:00
Patrice Mandin
0419508892 Formatting with tabs
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402508
2007-07-12 19:00:08 +00:00
Sam Lantinga
60af778a01 A better fix for building DGA code on Solaris 8, inspired by the NetBSD pkgsrc patch.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402506
2007-07-12 08:05:19 +00:00
Sam Lantinga
b38871d185 Ryan's fix is still good for the built-in version of iconv_open()
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402505
2007-07-12 08:04:10 +00:00
Sam Lantinga
98c3187047 Fixed iconv handling on Solaris 11
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402502
2007-07-12 07:47:29 +00:00
Sam Lantinga
49f5340ada Fixed bug #455
If passed "" for the character set, let iconv_open() interpret it as
locale.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402501
2007-07-12 07:29:19 +00:00
Sam Lantinga
dfcf33773e Added note about SDL_config.h
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402494
2007-07-12 05:30:17 +00:00
Sam Lantinga
2bad9cfdd2 Fixed joystick name detection
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402493
2007-07-12 05:19:55 +00:00
Sam Lantinga
c746a535e3 Warn Visual C++ users if they have a stale configure generated SDL_config.h
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402491
2007-07-12 02:51:58 +00:00
Sam Lantinga
34fbbeed53 Added key composition support, courtesy of Kuon
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402484
2007-07-11 07:53:12 +00:00
Ryan C. Gordon
f7f530f9e0 Added more release notes.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402483
2007-07-11 07:47:47 +00:00
Ryan C. Gordon
5f3ed9032b Merged r3207:3208 from trunk/SDL: *INDENT-OFF* for inline asm.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402481
2007-07-11 07:25:57 +00:00
Ryan C. Gordon
fcba672095 Cleaned up tabs.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402480
2007-07-11 07:21:39 +00:00
Ryan C. Gordon
0e32fcbe1d GCC inline asm for MMX YUV processing no longer has textrels and now works when
gcc wants to hog %%ebx for the PIC register.

   Fixes Bugzilla #418.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402479
2007-07-11 06:26:22 +00:00
Sam Lantinga
ef9a779720 Fixed VC++ warnings
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402478
2007-07-11 05:55:10 +00:00
Sam Lantinga
ec47c8fd5f Removed unreferenced variable
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402477
2007-07-11 05:46:04 +00:00
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