Commit Graph

3234 Commits

Author SHA1 Message Date
Sam Lantinga
e2adaf166a Fixed bug #968
Andrey      2010-03-07 07:57:14 PST

mingw32ce-build small fix
2010-03-10 15:07:20 +00:00
Sam Lantinga
d2ca31944f 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.
2010-03-10 15:02:58 +00:00
Sam Lantinga
4637315411 Fixed bug #961
Kalle Olavi Niemitalo      2010-02-28 09:15:50 PST

It seems the SDLK_LMETA and SDLK_RMETA constants have been removed from SDL
1.3.  I grepped for them in the SDL source tree and these were the only hits:

./include/SDL_compat.h:230:#define SDLK_LSUPER SDLK_LMETA
./include/SDL_compat.h:231:#define SDLK_RSUPER SDLK_RMETA
./src/video/bwindow/SDL_BWin.h:194:        keymap[0x66] = SDLK_LMETA;
./src/video/bwindow/SDL_BWin.h:195:        keymap[0x67] = SDLK_RMETA;

I don't know how compatible SDL 1.3 is supposed to be with applications
designed for SDL 1.2.  However, as you can see, SDL itself is still trying to
use the removed constants, and that is clearly a bug.

Because SDL_compat.h defines KMOD_LMETA as KMOD_LGUI, I suppose it should also
define SDLK_LMETA as SDLK_LGUI, and SDLK_RMETA likewise.
2010-03-09 06:07:48 +00:00
Sam Lantinga
04a0f0f416 Removed reference to compatibility function 2010-03-05 15:43:46 +00:00
Edgar Simo
9aeb408fa2 Disable error checks for reset actuators and set autocenter.
Reset actuators and set autocenter might not actually be supported on all
 implementations. We'll just disable error checking since they aren't
 critical to neither opening the joystick nor the haptic subsystem.
2010-02-28 09:23:23 +00:00
Ryan C. Gordon
565127b07c Changed the Subversion README to Mercurial.
--HG--
rename : README.SVN => README.HG
2010-02-28 03:23:07 -05:00
Ryan C. Gordon
07cc73d801 Changed revision details to be a string (an hg changeset) instead of an int. 2010-02-28 02:07:40 -05:00
Ryan C. Gordon
e8beace165 Made an .hgignore to mostly match old svn:ignore properties. 2010-02-28 02:06:47 -05:00
convert-repo
54d1d55fd4 update tags 2010-02-28 09:56:32 +00:00
Sam Lantinga
103ca4c191 Removed reference to compatibility function
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404470
2010-02-26 04:50:38 +00:00
Sam Lantinga
d56347edfb Fixed typo in the comment
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404469
2010-02-26 03:34:10 +00:00
Sam Lantinga
6989ef71d5 Adam Strzelecki to SDL
When graphic card has no GL_ARB_texture_rectangle YUV textures mapped with SDL_RenderCopy are stretched 2x horizontally, so only left half of texture is visible. This is due:
       data->texw = (GLfloat) (texture->w) / texture_w;
       data->texh = (GLfloat) texture->h / texture_h;
But afterwards texture_w /= 2 for YUV texture, but data->texw stays as it was before, while it should be multiplied 2x.

This bug can be seen in any program setting env variables: GL_APPLE_ycbcr_422=0 GL_EXT_texture_rectangle=0 GL_ARB_texture_rectangle=0

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404468
2010-02-17 04:42:52 +00:00
Sam Lantinga
999d46db4a Make sure STRICT is defined so the window proc has the correct prototype
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404466
2010-02-14 15:55:10 +00:00
Sam Lantinga
3db86820f6 Fixed compile error using Borland C++
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404465
2010-02-14 15:16:13 +00:00
Ryan C. Gordon
2aa8294c06 Merged r5549:5550 from branches/SDL-1.2: ALSA 6-channel swizzle fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404464
2010-02-12 17:14:41 +00:00
Ryan C. Gordon
2570f36a05 Merged r5547:5548 from branches/SDL-1.2: FreeBSD joystick uninit'd var fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404462
2010-02-05 19:23:59 +00:00
Sam Lantinga
b4ec792804 Migrated most of the TODO list to the SDL 1.3 Roadmap wiki
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404458
2010-02-01 02:52:19 +00:00
Sam Lantinga
db2e29b2d0 Fixed showing and hiding fullscreen windows
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404457
2010-02-01 01:19:37 +00:00
Sam Lantinga
7bf66f3583 Fixed bug #743
The arrow keys and keypad arrow keys have almost the same scancodes!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404456
2010-01-27 05:14:22 +00:00
Ryan C. Gordon
edb477343d Removed test for "driver is valid, but doesn't see any audio devices."
It was causing problems, and it really doesn't make sense to do it that way.

  Fixes Bugzilla #834.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404455
2010-01-26 06:01:33 +00:00
Sam Lantinga
3ec28279e8 Fixed bug #928
The change notes for SDL 1.3 will be moving to the wiki.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404454
2010-01-24 21:13:33 +00:00
Sam Lantinga
4d3df8b3e3 Fixed bug #926
Updated copyright to LGPL version 2.1 and year 2010

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
2010-01-24 21:10:53 +00:00
Sam Lantinga
9d79206973 Fixed bug #935
Patrice Mandin

Hello,

I originally added pth support for threads in SDL 1.2 because on the Atari
platform we did not have any thread library.

I think pth support could be removed from SDL 1.3 for two reasons:

- Atari platform removed

- pth does not provides real (preemptive) threads, because it is user space,
and expect the application to call one of its function to give CPU to another
thread. So it is not exactly useful for applications, that expect threads to
run simultaneously.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404452
2010-01-24 20:47:20 +00:00
Sam Lantinga
73074be94a Added magic to detect already freed or otherwise invalid windows and textures.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404451
2010-01-24 20:21:51 +00:00
Sam Lantinga
80a88bc0d3 Fixed bug #916
Shutting down the video shuts down the event loop, so don't do that after starting the event loop. :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404449
2010-01-24 19:47:17 +00:00
Sam Lantinga
51c2d1714d update window prev links
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404446
2010-01-22 16:17:11 +00:00
Sam Lantinga
8bd993e9e1 Fixed infinite loop at shutdown - update texture prev links
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404445
2010-01-22 15:55:20 +00:00
Sam Lantinga
ca30a739a8 Documentation consistency
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404444
2010-01-22 06:50:17 +00:00
Sam Lantinga
2bddc33611 Fixed compilation on iPhone
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404443
2010-01-21 16:12:24 +00:00
Sam Lantinga
9467a700e8 Fixed crash when there was no mouse focus for some reason (iPhone bug?)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404442
2010-01-21 16:11:55 +00:00
Sam Lantinga
645cd1b2d0 Fixed Cocoa and OpenGL builds
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404441
2010-01-21 07:28:01 +00:00
Sam Lantinga
5392fa233c Fixed compile warning on 64-bit Mac OS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404440
2010-01-21 07:22:11 +00:00
Sam Lantinga
218618259e Fixed compile warning
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404439
2010-01-21 07:10:22 +00:00
Sam Lantinga
a0e019f786 Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404438
2010-01-21 06:21:52 +00:00
Sam Lantinga
d7496843fc Fixed compiler warnings on 32-bit Linux
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404437
2010-01-21 05:49:41 +00:00
Sam Lantinga
37d1b35d66 From: Jjgod Jiang
Date: Mon, 18 Jan 2010 17:46:35 +0800
Subject: [PATCH] Polish text input handling for Mac OS X

- Prevent crash caused by uninitialized video data
- Prevent beeping caused by unhandled Cocoa selectors (like moveUp:
  moveDown:, etc.)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404436
2010-01-19 07:28:51 +00:00
Sam Lantinga
257e8decfd Added Xcode-iPhoneOS to make dist
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404435
2010-01-19 05:31:16 +00:00
Sam Lantinga
7613e183a7 Removed obsolete checks for ipod Linux
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404434
2010-01-18 14:58:58 +00:00
Sam Lantinga
1d8567b304 Fixed bug #920
From Martin:

Alright... I corrected SDL_SYS_ToDirection in SDL_syshaptic.c in the linux
directory of haptic. Now in all 3 cases the same value is returned, at least.
Therefore now it should behave the same way as on Windows.

I added some comments and corrected the cases SDL_HAPTIC_CARTESIAN and
SDL_HAPTIC_SPHERICAL.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404433
2010-01-18 14:57:41 +00:00
Sam Lantinga
a448d86eb8 Updated Mac OS X projects with new assertion code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404432
2010-01-18 14:50:57 +00:00
Sam Lantinga
e84dac760c Fixed bug #930
The PS2 video driver is obsolete and not going to be updated unless someone wants to maintain it.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404431
2010-01-18 14:27:30 +00:00
Sam Lantinga
de14fdf2e4 Fixed compiler warning
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404430
2010-01-18 14:16:47 +00:00
Sam Lantinga
8b1ff7b169 Fixed compile error on Mac OS X 10.4
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404429
2010-01-18 14:12:29 +00:00
Sam Lantinga
0fea52edf5 Fixed bug #932
Added the Fill operation for Direct3D

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404428
2010-01-18 06:34:04 +00:00
Ryan C. Gordon
112c27de5d Minor cleanups in PulseAudio code, to keep this 80-column-friendly.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404427
2010-01-17 06:51:31 +00:00
Ryan C. Gordon
df371ce2d4 Attempt to clean up PulseAudio dynamic loading support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404426
2010-01-17 06:43:28 +00:00
Ryan C. Gordon
83a5b57ac1 Merged r4210:5510 from branches/SDL-1.2/src/audio/pulse: PulseAudio updates.
This pulls all the PulseAudio reworking that was done for 1.2.14 into 1.3.

  Fixes Bugzilla #801.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404425
2010-01-17 06:14:04 +00:00
Sam Lantinga
91df94faa9 Fixed building under Visual Studio
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404422
2010-01-15 20:05:49 +00:00
Ryan C. Gordon
c9bab7f01e Clean up assertion API for public use.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404421
2010-01-13 19:29:33 +00:00
Ryan C. Gordon
281945aa84 Whoops, that should be vfprintf(), not fprintf(). :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404420
2010-01-13 16:58:24 +00:00