Commit graph

2261 commits

Author SHA1 Message Date
Ryan C. Gordon
014d56cbbb Date: Mon, 24 Sep 2007 17:54:58 +0200
From: Christopher GAUTIER <krys via.ecp.fr>
To: sdl@lists.libsdl.org
Subject: [SDL] SDL_INPUT_LINUXEV vs SDL_JOYSTICK_LINUXEVHello all,

There seems to be a slight inconsistency between the SDL_INPUT_LINUXEV
define (used in src/joystick/linux/), and SDL_JOYSTICK_LINUXEV defined
in include/SDL_config.h.

SDL_JOYSTICK_LINUXEV is never used, and SDL_INPUT_LINUXEV is not
mentioned in SDL_config.h.in (though set by the ./configure script).
This has the unfortunate effect of breaking the joystick detection on linux
boxes where /dev/input/event* is defined, but not /dev/(input/)?js*.

Trivial patch included.

Cheers.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402640
2007-09-25 09:59:26 +00:00
Ryan C. Gordon
77579d44ab ANSI C fix (all variables need to be defined at start of block).
Fixes Bugzilla #487.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402637
2007-09-01 17:25:24 +00:00
Sam Lantinga
ccf6e30b66 Fixed bugs #471 and #480
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402635
2007-08-21 06:52:33 +00:00
Ryan C. Gordon
66999cf699 Set an error message when SDL_GL_SetAttribute() fails because we can't support
the attribute on X11.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402578
2007-08-06 18:36:46 +00:00
Ryan C. Gordon
bf1bbf37de Removed some C++ style comments from the public headers.
Fixes Bugzilla #474.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402577
2007-08-05 03:21:18 +00:00
Sam Lantinga
784272518e Fixed bug #458
------- Comment #7 From Christian Walther 2007-07-23 01:10:30 [reply] -------
Fix for some Cocoa memory management problems.

OK, I think I've nailed the memory management problems with the attached patch.
Too late for the release, but oh well. It shows that I haven't done much Cocoa
lately... took me a while to figure out that NSWindows don't retain their
delegate.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402572
2007-07-24 04:21:05 +00:00
Sam Lantinga
ee495cbdf9 Switched afxres.h to winresrc.h
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402570
2007-07-23 18:36:58 +00:00
Sam Lantinga
f6fa658151 Fixed window titles on Windows 95/98/ME
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402568
2007-07-23 01:19:56 +00:00
Sam Lantinga
558a231a13 I'm not sure if this helps anything, but it was clearly wrong.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402561
2007-07-20 08:17:45 +00:00
Sam Lantinga
3dc65ba614 Merged window position fix from windib code
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402560
2007-07-20 03:30:41 +00:00
Sam Lantinga
0a9a1e25b8 > Hi Ryan,
> I checked the list you linked to, but did not see any reference to whether
> the Win32 window centering bug was fixed... Has that been addressed at all?

> I refer to the bug where, unless one has globally set the
> SDL_WINDOW_CENTERED variable in the OS, only the 1st window that is created

> will be centered. Subsequent calls to SetVideoMode will create a window tha
t
> shares the same upper-left corner location.

I'm working on that now, thanks for reporting it.  What I'm doing is if the
width and height are the same, I'm leaving the window position alone, but if
they're different they will respect the positioning environment variables.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402559
2007-07-20 03:25:40 +00:00
Sam Lantinga
482db6b458 Fixed warnings in NO_STDIO mode
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402558
2007-07-20 02:58:28 +00:00
Sam Lantinga
0b1d486568 Added patch note for bug #461
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402557
2007-07-19 08:12:45 +00:00
Sam Lantinga
99c118136b Fixed bug #461
Fixed a couple of bugs in the OpenGL window reset.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402556
2007-07-19 08:08:16 +00:00
Sam Lantinga
d2459bb368 Updating copyright date for Version.rc
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402555
2007-07-18 04:07:46 +00:00
Sam Lantinga
385916fd13 Better windres detection
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402553
2007-07-18 04:04:24 +00:00
Sam Lantinga
62756e27c7 Always advertise hardware palette, since Windows will remap colors for us.
We do grab the system colors if the application requested fullscreen or a
real hardware palette.

This allows gamma fading, etc. to work, and is what previous versions did.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402550
2007-07-16 05:08:20 +00:00
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