Thu, 15 Apr 2010 22:27:01 -0700Minor cleanup on Jiang's patch
Sam Lantinga <slouken@libsdl.org> [Thu, 15 Apr 2010 22:27:01 -0700] rev 4435
Minor cleanup on Jiang's patch

Thu, 15 Apr 2010 22:14:26 -0700changeset: 4433:25667ea797fa
Sam Lantinga <slouken@libsdl.org> [Thu, 15 Apr 2010 22:14:26 -0700] rev 4434
changeset: 4433:25667ea797fa
tag: tip
user: Jiang Jiang <gzjjgod@gmail.com>
date: Thu Apr 15 12:01:46 2010 +0800
summary: Add windowID to text editing event

Thu, 15 Apr 2010 21:27:32 -0700Fixed bug 984
Sam Lantinga <slouken@libsdl.org> [Thu, 15 Apr 2010 21:27:32 -0700] rev 4433
Fixed bug 984

SDL_CreateTexture allows the creation of textures of size 0, which can lead to div by 0 errors

Tue, 13 Apr 2010 22:01:14 -0700Fixed bug 944
Sam Lantinga <slouken@libsdl.org> [Tue, 13 Apr 2010 22:01:14 -0700] rev 4432
Fixed bug 944

Tatu Kilappa 2010-02-11 12:13:20 PST

When compiling with -Wconversion, gcc complains about a cast in SDL_endian.h
that might change the result as we are casting from an int into an Uint16. This
is of course not visible unless we are on a non-x86 platform where the
assembler is not available.

While it's not really an error, the warning is really annoying. To fix, change
SDL_endian.h line 87 to:

return(Uint16)((x<<8)|(x>>8));

Thank you.

Tue, 13 Apr 2010 21:46:10 -0700Fixed bug 944 SDL-1.2
Sam Lantinga <slouken@libsdl.org> [Tue, 13 Apr 2010 21:46:10 -0700] rev 4431
Fixed bug 944

Tatu Kilappa 2010-02-11 12:13:20 PST

When compiling with -Wconversion, gcc complains about a cast in SDL_endian.h
that might change the result as we are casting from an int into an Uint16. This
is of course not visible unless we are on a non-x86 platform where the
assembler is not available.

While it's not really an error, the warning is really annoying. To fix, change
SDL_endian.h line 87 to:

return(Uint16)((x<<8)|(x>>8));

Thank you.

Tue, 13 Apr 2010 21:24:55 -0700CVS is so last decade... SDL-1.2
Sam Lantinga <slouken@libsdl.org> [Tue, 13 Apr 2010 21:24:55 -0700] rev 4430
CVS is so last decade...

Thu, 25 Mar 2010 01:08:26 -0700General improvements for user custom event registration
Sam Lantinga <slouken@libsdl.org> [Thu, 25 Mar 2010 01:08:26 -0700] rev 4429
General improvements for user custom event registration

* Switched event type to enum (int32)
* Switched polling by mask to polling by type range
* Added SDL_RegisterEvents() to allow dynamic user event registration
* Spread events out to allow inserting new related events without breaking binary compatibility
* Added padding to event structures so they're the same size regardless of 32-bit compiler structure packing settings
* Split SDL_HasEvent() to SDL_HasEvent() for a single event and SDL_HasEvents() for a range of events
* Added SDL_GetEventState() as a shortcut for SDL_EventState(X, SDL_QUERY)
* Added SDL_FlushEvent() and SDL_FlushEvents() to clear events from the event queue

Wed, 10 Mar 2010 15:07:20 +0000Fixed bug #968
Sam Lantinga <slouken@libsdl.org> [Wed, 10 Mar 2010 15:07:20 +0000] rev 4428
Fixed bug #968

Andrey 2010-03-07 07:57:14 PST

mingw32ce-build small fix

Wed, 10 Mar 2010 15:04:13 +0000Fixed bug #943 SDL-1.2
Sam Lantinga <slouken@libsdl.org> [Wed, 10 Mar 2010 15:04:13 +0000] rev 4427
Fixed bug #943

Ozkan Sezer 2010-02-06 12:31:06 PST

Hi:

Here are some small fixes for compiling SDL against mingw-w64.
(see http://mingw-w64.sourceforge.net/ . Despite the name, it
supports both win32 and win64.) Two patches, one for SDL-1.2
and one for SDL-1.3 attached.

src/audio/windx5/directx.h and src/video/windx5/directx.h (both
SDL-1.2 and SDL-1.3.) I get compilation errors about some union
not having a member named u1 and alike, because of other system
headers being included before this one and them already defining
DUMMYUNIONNAME and stuff. This header probably assumes that those
stuff are defined in windef.h, but mingw-w64 headers define them
in _mingw.h. Easily fixed by moving NONAMELESSUNION definition to
the top of the file. SDL_dx5yuv.c (SDL-1.2-only) also needs to
include the header before SDL_video.h to avoid the same problem.

src/thread/win32/SDL_systhread.c (both SDL-1.2 and SDL-1.3.) :
The __GNUC__ case for pfnSDL_CurrentBeginThread is 32-bit centric
because _beginthreadex returns uintptr_t, not unsigned long which
is 32 bits in win64. Changing the return type to uintptr_t fixes
it.

Hope these are useful. Thanks.

Wed, 10 Mar 2010 15:02:58 +0000Fixed bug #943
Sam Lantinga <slouken@libsdl.org> [Wed, 10 Mar 2010 15:02:58 +0000] rev 4426
Fixed bug #943

Ozkan Sezer 2010-02-06 12:31:06 PST

Hi:

Here are some small fixes for compiling SDL against mingw-w64.
(see http://mingw-w64.sourceforge.net/ . Despite the name, it
supports both win32 and win64.)

src/audio/windx5/directx.h and src/video/windx5/directx.h (both
SDL-1.2 and SDL-1.3.) I get compilation errors about some union
not having a member named u1 and alike, because of other system
headers being included before this one and them already defining
DUMMYUNIONNAME and stuff. This header probably assumes that those
stuff are defined in windef.h, but mingw-w64 headers define them
in _mingw.h. Easily fixed by moving NONAMELESSUNION definition to
the top of the file.

src/thread/win32/SDL_systhread.c (both SDL-1.2 and SDL-1.3.) :
The __GNUC__ case for pfnSDL_CurrentBeginThread is 32-bit centric
because _beginthreadex returns uintptr_t, not unsigned long which
is 32 bits in win64. Changing the return type to uintptr_t fixes
it.

video/SDL_blit.h (and configure.in) (SDL-1.3-only) : MinGW-w64
uses msvcrt version of _aligned_malloc and _aligned_free and
they are defined in intrin.h (similar to VC). Adding proper
ifdefs fixes it. (Notes about macros to check: __MINGW32__ is
defined for both mingw.org and for mingw-w64 for both win32 and
win64, __MINGW64__ is only defined for _WIN64, so __MINGW64__
can't be used to detect mingw-w64: including _mingw.h and then
checking for __MINGW64_VERSION_MAJOR does the trick.)

SDL_win32video.h (SDL-1.3-only) : Tweaked the VINWER definition
and location in order to avoid multiple redefinition warnings.

Hope these are useful. Thanks.