Commit Graph

2104 Commits

Author SHA1 Message Date
Sam Lantinga
54c57a6e47 Fixed window titles on Windows 95/98/ME
--HG--
branch : SDL-1.2
2007-07-23 01:19:56 +00:00
Sam Lantinga
38d037c3a9 I'm not sure if this helps anything, but it was clearly wrong.
--HG--
branch : SDL-1.2
2007-07-20 08:17:45 +00:00
Sam Lantinga
57c3c8e959 Merged window position fix from windib code
--HG--
branch : SDL-1.2
2007-07-20 03:30:41 +00:00
Sam Lantinga
9f2bd9da0f > 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
2007-07-20 03:25:40 +00:00
Sam Lantinga
57b5e688eb Fixed warnings in NO_STDIO mode
--HG--
branch : SDL-1.2
2007-07-20 02:58:28 +00:00
Sam Lantinga
d05d4532f7 Added patch note for bug #461
--HG--
branch : SDL-1.2
2007-07-19 08:12:45 +00:00
Sam Lantinga
b1f660ba94 Fixed bug #461
Fixed a couple of bugs in the OpenGL window reset.

--HG--
branch : SDL-1.2
2007-07-19 08:08:16 +00:00
Sam Lantinga
30b1504e45 Updating copyright date for Version.rc
--HG--
branch : SDL-1.2
2007-07-18 04:07:46 +00:00
Sam Lantinga
827825956a Better windres detection
--HG--
branch : SDL-1.2
2007-07-18 04:04:24 +00:00
Sam Lantinga
5eee2f939e 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
2007-07-16 05:08:20 +00:00
Sam Lantinga
54cb90b38f Added support for building version.rc in Windows build.
--HG--
branch : SDL-1.2
2007-07-16 03:27:26 +00:00
Sam Lantinga
d2f64a14b9 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
2007-07-16 00:07:02 +00:00
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
f7a0de097b Added a patch note for the Mac OS X cursor bug
--HG--
branch : SDL-1.2
2007-07-15 19:00:22 +00:00
Ryan C. Gordon
d250d19e79 Merged r3295:3296 from trunk/SDL: testjoystick reusing "joystick" variable.
--HG--
branch : SDL-1.2
2007-07-15 17:26:50 +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
Ryan C. Gordon
b40c30723f Dump more information about each joystick in testjoytick.c
--HG--
branch : SDL-1.2
2007-07-15 16:33:45 +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
Sam Lantinga
46294bb92c Update default cross-compile install prefix for the latest mingw toolchain
--HG--
branch : SDL-1.2
2007-07-13 03:57:40 +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
8b1219c608 Added note about SDL_config.h
--HG--
branch : SDL-1.2
2007-07-12 05:30:17 +00:00
Sam Lantinga
36072b6f7f Fixed joystick name detection
--HG--
branch : SDL-1.2
2007-07-12 05:19:55 +00:00
Sam Lantinga
26503f8143 Warn Visual C++ users if they have a stale configure generated SDL_config.h
--HG--
branch : SDL-1.2
2007-07-12 02:51:58 +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
e67530ab71 Added more release notes.
--HG--
branch : SDL-1.2
2007-07-11 07:47:47 +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
Sam Lantinga
b05ffd4cf8 Updated SVN checkout instructions
--HG--
branch : SDL-1.2
2007-07-10 20:15:31 +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