Commit Graph

1976 Commits

Author SHA1 Message Date
Sam Lantinga
d4ab10237e 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
2007-07-06 13:32:20 +00:00
Sam Lantinga
9c3a477063 Fixed bug #382
Added horizontal scrolling support: SDL_BUTTON_WHEELLEFT (6) and SDL_BUTTON_WHEELRIGHT (7)

--HG--
branch : SDL-1.2
2007-07-06 09:15:43 +00:00
Sam Lantinga
37e5fb71f4 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
2007-07-06 07:45:33 +00:00
Sam Lantinga
18107d7add Fixed Windows build
--HG--
branch : SDL-1.2
2007-07-05 07:11:05 +00:00
Sam Lantinga
492a3cac81 Fixed bug #436
The install-lib target should depend on the libraries that are built.

--HG--
branch : SDL-1.2
2007-07-05 06:34:51 +00:00
Ryan C. Gordon
cd531d2e31 Added Markus Mertama to the CREDITS file for the S60 port.
--HG--
branch : SDL-1.2
2007-07-05 04:53:36 +00:00
Ryan C. Gordon
f21a11a7d3 Minor updates to the Symbian/S60 port, plus project files that weren't
previously imported.

   Fixes Bugzilla #433.

--HG--
branch : SDL-1.2
2007-07-05 04:51:09 +00:00
Ryan C. Gordon
f6bfedad78 Added notes about audio callback behaviour.
--HG--
branch : SDL-1.2
2007-07-05 02:53:40 +00:00
Ryan C. Gordon
9594abc1d8 Fixed our own test app. :)
--HG--
branch : SDL-1.2
2007-07-05 02:44:54 +00:00
Ryan C. Gordon
66177afee0 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
2007-07-05 02:24:36 +00:00
Sam Lantinga
5ee4e6175f Oops, didn't mean to commit this...
--HG--
branch : SDL-1.2
2007-07-04 15:22:47 +00:00
Sam Lantinga
41a443d951 Fixed bug #450
--HG--
branch : SDL-1.2
2007-07-04 15:22:07 +00:00
Sam Lantinga
64f823384c Fixed bug #447
Xlib uses the native locale, not latin1

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

--HG--
branch : SDL-1.2
2007-07-04 07:54:06 +00:00
Sam Lantinga
b9b6dfe97a Fixed bug #349
Solaris doesn't support the LATIN1 character set alias.

--HG--
branch : SDL-1.2
2007-07-04 04:27:47 +00:00
Ryan C. Gordon
18be9d8dc9 Fixed yasm/nasm warning.
Fixes Bugzilla #446.

--HG--
branch : SDL-1.2
2007-07-03 09:53:26 +00:00
Sam Lantinga
6581faeac6 Fixed bug #398
You can use SetColors() before the video mode has been set.

--HG--
branch : SDL-1.2
2007-07-03 09:39:09 +00:00
Sam Lantinga
d3c0a3c96e Added some missing patch notes - Ryan, feel free to add them for your commits
--HG--
branch : SDL-1.2
2007-07-03 09:22:57 +00:00
Sam Lantinga
d18dec8293 Added patch note for fixing bug 335
--HG--
branch : SDL-1.2
2007-07-03 09:16:14 +00:00
Sam Lantinga
664cd43e70 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
2007-07-03 09:05:51 +00:00
Sam Lantinga
a9739cb40c Fixed assembly relocation problems, so we can check for NASM on Mac OS X.
--HG--
branch : SDL-1.2
2007-07-02 02:45:52 +00:00
Sam Lantinga
d93d192b26 OpenGL is in the X11 directory on some systems.
--HG--
branch : SDL-1.2
2007-06-30 08:09:53 +00:00
Sam Lantinga
afa700497a Fixed 64-bit compile issues
--HG--
branch : SDL-1.2
2007-06-30 03:47:50 +00:00
Ryan C. Gordon
80089cfdd3 Corrected mismerge of XIM patch, thanks Alissa!
Fixes Bugzilla #429.

--HG--
branch : SDL-1.2
2007-06-28 19:29:26 +00:00
Sam Lantinga
ede76d3d09 iconv() doesn't write to the data, just make compilers happy
--HG--
branch : SDL-1.2
2007-06-28 08:33:59 +00:00
Sam Lantinga
0a4a20138d Whoops, need to actually copy inbuf
--HG--
branch : SDL-1.2
2007-06-28 06:53:09 +00:00
Sam Lantinga
1d39695864 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
2007-06-28 06:47:35 +00:00
Sam Lantinga
77b434c3a5 Better fix for bug 419
--HG--
branch : SDL-1.2
2007-06-28 05:35:50 +00:00
Ryan C. Gordon
39eff5a510 Removed textrels from hermes code.
Partially fixes Bugzilla #418.

--HG--
branch : SDL-1.2
2007-06-27 10:12:49 +00:00
Ryan C. Gordon
8d05f5cf7e Updated "What's New" docs.
--HG--
branch : SDL-1.2
2007-06-26 20:04:15 +00:00
Ryan C. Gordon
ab4f135dd8 windib target can now control screensaver with SDL_VIDEO_ALLOW_SCREENSAVER.
Fixes Bugzilla #415.

--HG--
branch : SDL-1.2
2007-06-26 20:02:40 +00:00
Ryan C. Gordon
857fb30004 Added some new XIM symbols to the dynamic X11 function list.
--HG--
branch : SDL-1.2
2007-06-26 00:57:09 +00:00
Ryan C. Gordon
3bb777b16e Whoops, patched to compile.
--HG--
branch : SDL-1.2
2007-06-25 20:08:55 +00:00
Ryan C. Gordon
df56aa56f5 Significantly improved XIM support.
Fixes Bugzilla #429.


Selected notes from the patch's README:

= FIXES =

This patch fixes the above issues as follows.

== X11 events ==

Moved XFilterEvent just after XNextEvent so that all events are passed
to it.  Also, XFilterEvent will receive masks indicated by IM through
XNFilterEvents IC value as well as masks surpplied by SDL.

X11_KeyRepeat is called between XNextEvent and XFilterEvent, after
testing an event is a KeyRelease.  I'm not 100% comfortable to do so,
but I couldn't find a better timing to call it, and use of the
function is inevitable.

== Xutf8LookupString ==

Used a longer buffer to receive UTF-8 string.  If it is insufficient,
a dynamic storage of the requested size will be allocated.  The
initial size of the buffer is set to 32, because the Japanese text
converted from the most widely used benchmark key sequence for
Japanese IM, "WATASHINONAMAEHANAKANODESU." has ten Japanese characters
in it, that occupies 30 bytes when encoded in UTF-8.

== SDL_keysym.unicode ==

On Windows version of SDL implementation, SDL_keysym.unicode stores
UTF-16 encoded unicode characters, one UTF-16 encoding unit per an SDL
event.  A Unicode supplementary characters are sent to an application
as two events.  (One with a high surrogate and another with a low
surrogate.)  The behavior seems reasonable since it is upward
compatible with existing handling of BMP characters.

I wrote a UTF-8 to UTF-16 conversion function for the purpose.  It is
designed with the execution speed in mind, having a minimum set of
features that my patch requires.

--HG--
branch : SDL-1.2
2007-06-25 19:58:32 +00:00
Sam Lantinga
abf879e37b Oops, 512x512 in 16 bit mode
--HG--
branch : SDL-1.2
2007-06-25 14:58:22 +00:00
Sam Lantinga
ddcda50469 Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
--HG--
branch : SDL-1.2
2007-06-25 00:50:20 +00:00
Ryan C. Gordon
c66b807d4e Added S60 port.
--HG--
branch : SDL-1.2
2007-06-24 18:26:35 +00:00
Ryan C. Gordon
64c283b48b Whoops, fixed previous VC6 support patch.
--HG--
branch : SDL-1.2
2007-06-21 18:48:13 +00:00
Ryan C. Gordon
df1d10c53f Fixes for Visual C++ 6.0 with and without the Processor Pack.
--HG--
branch : SDL-1.2
2007-06-21 18:20:59 +00:00
Ryan C. Gordon
4a0496f202 Fixed assembler command line for older yasm releases and documented nasm
switches.

   Fixes Bugzilla #440.

--HG--
branch : SDL-1.2
2007-06-16 05:51:51 +00:00
Ryan C. Gordon
3ebec8ea6c Fixed win32 event name list (WM_MOUSELAST was listed twice, one should be
WM_MOUSEWHEEL).

--HG--
branch : SDL-1.2
2007-06-16 05:24:55 +00:00
Ryan C. Gordon
2d96450d1f Added support for WM_XBUTTON to the windib driver, to support more mouse
buttons.

   Fixes Bugzilla #311.

--HG--
branch : SDL-1.2
2007-06-16 05:10:47 +00:00
Ryan C. Gordon
40b50cd3f0 Removed some more EPOC stuff I missed.
--HG--
branch : SDL-1.2
2007-06-15 15:52:04 +00:00
Ryan C. Gordon
de5cb8d0ad Removed EPOC port...it's being replaced by an updated Symbian port with the
original author's blessing.

--HG--
branch : SDL-1.2
2007-06-15 15:42:15 +00:00
Ryan C. Gordon
f914aeee1f Make sure to check for glu.h before enabling glX support. We don't
directly need GLU, but SDL_opengl.h tries to include it, and it shows that
 the workstation is misconfigured or incompletely configured if just this
 one header is missing.

   Fixes Bugzilla #336.

--HG--
branch : SDL-1.2
2007-06-15 12:26:29 +00:00
Sam Lantinga
6d5359a85e Added patch note for subversion revision 3076
--HG--
branch : SDL-1.2
2007-06-15 11:43:14 +00:00
Ryan C. Gordon
5ef9fe1331 Make sure __inline__ isn't defined before #defining it, since some compilers
(like Sun Studio) have this as a predefined macro.

   Fixes Bugzilla #434.

--HG--
branch : SDL-1.2
2007-06-15 07:19:05 +00:00
Ryan C. Gordon
762d7c5698 Clean up have-initialized resources in some failing edge cases.
Maybe fixes Bugzilla #426.

--HG--
branch : SDL-1.2
2007-06-15 06:57:31 +00:00
Sam Lantinga
6fe7ece68f Added docs for revision 3073 - Ryan, feel free to do this yourself, if you want.
--HG--
branch : SDL-1.2
2007-06-15 06:49:14 +00:00
Ryan C. Gordon
c87aa92e3e Support for Gamma Ramps on Mac OS Classic in both the macrom and macdsp video
targets, thanks to Gregory Smith!

   Fixes Bugzilla #431.

--HG--
branch : SDL-1.2
2007-06-15 06:29:52 +00:00
Sam Lantinga
03d52796a9 Don't install the extra SDL config headers or SDL_copying.h
Fixes Bugzilla #361.

--HG--
branch : SDL-1.2
2007-06-15 05:41:22 +00:00