Commit Graph

2104 Commits

Author SHA1 Message Date
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
Sam Lantinga
6310de0733 Updated docs with bug fixes in subversion.
--HG--
branch : SDL-1.2
2007-06-15 05:21:33 +00:00
Ryan C. Gordon
cf04b769eb Prevent arts audio target from crashing/hanging SDL if the audio hardware
isn't available.

   Fixes Bugzilla #372.

--HG--
branch : SDL-1.2
2007-06-14 14:09:25 +00:00
Ryan C. Gordon
a96dc8aca5 Actually, this is a better fix...clear the error state once if everything we
need loaded; it's more efficient, and works even if the last unnecessary
 xrandr symbol failed to load. Otherwise, leave the original loadso error, so
 the end user can find out what symbol failed.

--HG--
branch : SDL-1.2
2007-06-13 08:00:10 +00:00
Ryan C. Gordon
1192ca93d5 Date: Mon, 4 Jun 2007 06:17:59 +0000 (UTC)
From: George Gensure <werkt0@gmail.com>
Subject: [SDL] error removal patch for SDL_x11dyn.c

I found that calling SDL_GetError when an error hasn't necessarily occurred is
still reporting problems from loadso regarding dynamic functions in X11.  I've
added the following to my local copy to avoid revealing the 'many library
lookup' approach adopted by x11dyn.c:

--HG--
branch : SDL-1.2
2007-06-13 07:54:10 +00:00
Ryan C. Gordon
49b8d7cf26 Print keysym with key events.
--HG--
branch : SDL-1.2
2007-06-13 04:13:21 +00:00
Patrice Mandin
9d5fef7bea Avoid switch to supervisor mode in SDL_GetTicks, by updating system counter from vbl interrupt
--HG--
branch : SDL-1.2
2007-06-09 19:52:05 +00:00
Patrice Mandin
3689963eb8 Set supervisor as volatile as it is modified from an interrupt
--HG--
branch : SDL-1.2
2007-06-08 21:44:40 +00:00
Ryan C. Gordon
09d57b679e C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeandel for
the catch.

  Fixes Bugzilla #424.

--HG--
branch : SDL-1.2
2007-06-04 11:43:47 +00:00
Ryan C. Gordon
b75d969532 Better handling of multiple queued Cocoa mouse events. Thanks to Christian
Walther for the patch.

   Fixes Bugzilla #353.

--HG--
branch : SDL-1.2
2007-06-04 11:22:23 +00:00
Ryan C. Gordon
1f62de060a Patch to allow DirectFB target to report a correct screen size.
Fixes Bugzilla #399.

--HG--
branch : SDL-1.2
2007-06-04 11:15:58 +00:00
Ryan C. Gordon
e9b986d468 Check if yasm supports a nasm-specific syntax we use (it doesn't in 0.5.0,
which is still common in Linux distros, and does in 0.6.0). Disable it if we
 don't, attempting to fallback to using nasm. Thanks to Mike Frysinger for the
 patch.

   Fixes Bugzilla #393.

--HG--
branch : SDL-1.2
2007-06-04 11:06:48 +00:00
Ryan C. Gordon
815b8cc112 Minor macrom comment cleanup.
--HG--
branch : SDL-1.2
2007-06-03 19:21:07 +00:00
Ryan C. Gordon
0d8d425d07 Minor tab fix in mac drawsprocket code.
--HG--
branch : SDL-1.2
2007-06-03 19:19:16 +00:00
Ryan C. Gordon
9bb95f8c9e Patched to compile on Mac OS X (not that you should necessarily be using this
on Mac OS X, but still) ...

--HG--
branch : SDL-1.2
2007-06-03 06:52:58 +00:00
Ryan C. Gordon
11eee89627 Use system memset/memcpy on Mac OS X, since Apple hand-tunes these for each
processor they ship (and thus, it's likely to beat our code on PowerPC and
 Intel and whatever variants or new archs show up later).

--HG--
branch : SDL-1.2
2007-06-03 06:52:06 +00:00
Ryan C. Gordon
3b60f99754 Mac OS X joystick calibration code should start with device-specified bounds.
Fixes Bugzilla #344.

--HG--
branch : SDL-1.2
2007-05-29 12:01:07 +00:00
Patrice Mandin
75e0c3a473 Allow creation of window bigger than visible size
--HG--
branch : SDL-1.2
2007-05-27 08:53:48 +00:00
Patrice Mandin
c19ad50e18 Oops
--HG--
branch : SDL-1.2
2007-05-26 20:12:58 +00:00
Patrice Mandin
df7d4b383c Simply resize existing window
--HG--
branch : SDL-1.2
2007-05-26 20:09:56 +00:00
Patrice Mandin
c960d362f9 GEM has a window manager, of course
--HG--
branch : SDL-1.2
2007-05-26 19:44:37 +00:00
Ryan C. Gordon
4386f56cdf Check correct glX extension name for swap_control, but it doesn't look like
we ever actually look up the symbol...that's probably a bug.  :/

--HG--
branch : SDL-1.2
2007-05-22 22:15:54 +00:00
Ryan C. Gordon
67c6247b61 Committed PulseAudio driver. Thanks, Stephan!
--HG--
branch : SDL-1.2
2007-05-13 23:12:46 +00:00