Ryan C. Gordon
7fd3fd7c35
An attempt at fixing Bugzilla #454 .
...
--HG--
branch : SDL-1.2
2007-07-15 14:14:45 +00:00
Sam Lantinga
d6deb7f664
I think this fixes bug #454
...
--HG--
branch : SDL-1.2
2007-07-15 14:05:31 +00:00
Sam Lantinga
8eed2f44ff
Use SDL C functions (fixes security warnings on OpenBSD)
...
--HG--
branch : SDL-1.2
2007-07-14 21:09:54 +00:00
Sam Lantinga
31affb7a1a
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
2007-07-14 08:27:06 +00:00
Sam Lantinga
2d7abdd8b5
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
2007-07-14 08:00:50 +00:00
Ryan C. Gordon
fb21ae9a31
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
2007-07-14 07:26:34 +00:00
Ryan C. Gordon
9d4121fcce
Removed some unused static variables.
...
--HG--
branch : SDL-1.2
2007-07-14 07:01:38 +00:00
Patrice Mandin
49202d7dda
Call GEM_CheckMouseMode everytime something may change mouse form, and do it properly
...
--HG--
branch : SDL-1.2
2007-07-13 18:44:43 +00:00
Patrice Mandin
dd14735a89
Simplify setting window title
...
--HG--
branch : SDL-1.2
2007-07-13 16:09:16 +00:00
Patrice Mandin
5549815a79
Formatting with tabs
...
--HG--
branch : SDL-1.2
2007-07-12 19:00:08 +00:00
Sam Lantinga
768896d21c
A better fix for building DGA code on Solaris 8, inspired by the NetBSD pkgsrc patch.
...
--HG--
branch : SDL-1.2
2007-07-12 08:05:19 +00:00
Sam Lantinga
72971613ec
Added key composition support, courtesy of Kuon
...
--HG--
branch : SDL-1.2
2007-07-11 07:53:12 +00:00
Ryan C. Gordon
e79a9981ca
Merged r3207:3208 from trunk/SDL: *INDENT-OFF* for inline asm.
...
--HG--
branch : SDL-1.2
2007-07-11 07:25:57 +00:00
Ryan C. Gordon
fdafa36bce
Cleaned up tabs.
...
--HG--
branch : SDL-1.2
2007-07-11 07:21:39 +00:00
Ryan C. Gordon
c13d2c86f5
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
2007-07-11 06:26:22 +00:00
Sam Lantinga
323e531569
Removed unreferenced variable
...
--HG--
branch : SDL-1.2
2007-07-11 05:46:04 +00:00
Sam Lantinga
8d46e7bac9
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
2007-07-11 05:43:39 +00:00
Ryan C. Gordon
d370a8df80
Added a '*/' for whiney compilers that don't like comments-in-comments.
...
--HG--
branch : SDL-1.2
2007-07-10 13:52:07 +00:00
Sam Lantinga
351e299247
Fixed bug #453
...
That's silly, we included <asm/page.h> even though we know we have getpagesize()
--HG--
branch : SDL-1.2
2007-07-10 05:35:33 +00:00
Sam Lantinga
e1897287a9
I'm reverting this patch...
...
I'm suspicious, since the X11 driver doesn't appear to need it. :)
--HG--
branch : SDL-1.2
2007-07-10 04:49:00 +00:00
Sam Lantinga
3bfb01cbff
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
2007-07-10 04:47:08 +00:00
Sam Lantinga
7f31bfce8c
Applied patch from OpenBSD ports package
...
--HG--
branch : SDL-1.2
2007-07-08 22:58:33 +00:00
Sam Lantinga
5fee52b523
Fixed bug #437
...
Some X servers advertise the DGA extension don't support DGA1 anymore.
--HG--
branch : SDL-1.2
2007-07-08 20:38:36 +00:00
Sam Lantinga
f0b46b4b63
Fixed typo... did somebody not compile this before submitting a patch?
...
--HG--
branch : SDL-1.2
2007-07-08 04:07:36 +00:00
Ryan C. Gordon
83c756f4bb
This looks like it might hit Bugzilla #441 , too, so we'll play it safe.
...
--HG--
branch : SDL-1.2
2007-07-08 01:55:46 +00:00
Ryan C. Gordon
9032aaaf8c
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
2007-07-08 01:50:26 +00:00
Ryan C. Gordon
b3d0bc9780
Fixed compiler warning (gcc w/ -Wall) for unused variable, and checked for
...
error return code too.
--HG--
branch : SDL-1.2
2007-07-08 01:35:50 +00:00
Sam Lantinga
902eba96d6
Use GL direct updates when possible
...
--HG--
branch : SDL-1.2
2007-07-07 19:22:27 +00:00
Sam Lantinga
a272a39184
Fixed bug #360
...
Fixed fullscreen video modes and improved the mouse grab code.
--HG--
branch : SDL-1.2
2007-07-07 19:20:28 +00:00
Sam Lantinga
cc9abb85bd
Reverted mousewheel support in 1.2, since it breaks binary compatibility.
...
--HG--
branch : SDL-1.2
2007-07-06 13:39:03 +00:00
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
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
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
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
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
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
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