Sam Lantinga
b3ed797912
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
2007-07-15 21:50:07 +00:00
Sam Lantinga
85e0b92fab
Fixed building on Windows CE
...
--HG--
branch : SDL-1.2
2007-07-15 19:43:54 +00:00
Sam Lantinga
c6d395951a
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
2007-07-15 17:22:39 +00:00
Sam Lantinga
9dddc84312
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
2007-07-15 15:58:00 +00:00
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
6d23d090bb
Reverted r3255:3256. Don't actually need it unless the build is broken. :)
...
--HG--
branch : SDL-1.2
2007-07-14 07:06:46 +00:00
Ryan C. Gordon
9d4121fcce
Removed some unused static variables.
...
--HG--
branch : SDL-1.2
2007-07-14 07:01:38 +00:00
Ryan C. Gordon
2cb1d6e0b8
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
2007-07-14 06:45:01 +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
b8389ee714
Ryan's fix is still good for the built-in version of iconv_open()
...
--HG--
branch : SDL-1.2
2007-07-12 08:04:10 +00:00
Sam Lantinga
0d5dbe63e0
Fixed iconv handling on Solaris 11
...
--HG--
branch : SDL-1.2
2007-07-12 07:47:29 +00:00
Sam Lantinga
b314a8768e
Fixed bug #455
...
If passed "" for the character set, let iconv_open() interpret it as
locale.
--HG--
branch : SDL-1.2
2007-07-12 07:29:19 +00:00
Sam Lantinga
36072b6f7f
Fixed joystick name detection
...
--HG--
branch : SDL-1.2
2007-07-12 05:19:55 +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
d6ee8b3ea7
Fixed VC++ warnings
...
--HG--
branch : SDL-1.2
2007-07-11 05:55:10 +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
2612d57676
Set the error after freeing stuff, just in case one of those functions resets
...
the error string.
--HG--
branch : SDL-1.2
2007-07-10 19:03:44 +00:00
Ryan C. Gordon
470b697064
Reverted most of r3200:3201: a malloc() failure would leave a zero-byte
...
file if opening for write.
--HG--
branch : SDL-1.2
2007-07-10 18:56:08 +00:00
Sam Lantinga
4c05553d22
Simplified Win32 file opening code
...
--HG--
branch : SDL-1.2
2007-07-10 16:01:46 +00:00
Ryan C. Gordon
f1c32ff639
Don't leak the readahead buffer if win32 rwops file open fails.
...
--HG--
branch : SDL-1.2
2007-07-10 15:03:19 +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
d290a1b7bb
Fixed signed/unsigned mismatch ... hmm, limited to 2 GB reads? Fix in SDL 1.3
...
--HG--
branch : SDL-1.2
2007-07-10 04:31:31 +00:00
Sam Lantinga
2b7f475ce0
Added read-ahead support for Win32 file IO
...
--HG--
branch : SDL-1.2
2007-07-10 04:01:46 +00:00
Ryan C. Gordon
85cd0a4912
Reverted patch in revision #3139 , since it changes behaviour, which isn't good
...
at this stage of 1.2.
--HG--
branch : SDL-1.2
2007-07-09 00:25:31 +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
8ba37093d5
Merged FreeBSD joystick patch
...
--HG--
branch : SDL-1.2
2007-07-08 22:14:37 +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
3859229030
Fixed compiler warning (gcc w/ -Wall) for using getpid() and kill() without
...
their proper headers included.
--HG--
branch : SDL-1.2
2007-07-08 01:36:16 +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