Commit Graph

511 Commits

Author SHA1 Message Date
Andreas Schiffler
40bfbbdbf9 Fixed global suite declaration segfault via external linkage declaration 2011-05-26 20:13:49 -07:00
Markus Kauppila
e022f90b60 Little fixes here and there. 2011-05-26 19:57:03 +03:00
Markus Kauppila
7a278b2f78 Added TestCaseReference structure. 2011-05-26 19:19:46 +03:00
Markus Kauppila
94e6e4cea9 Refactoring the massive main() to smaller functions. 2011-05-26 18:38:56 +03:00
Markus Kauppila
f3bee868b4 Some fixes for Linux compatibility. 2011-05-25 09:45:03 -07:00
Markus Kauppila
53b99958d9 Fixed an error from make target: install 2011-05-25 19:02:43 +03:00
Markus Kauppila
09e6c52b0e New automake-based build process. 2011-05-25 18:53:48 +03:00
Markus Kauppila
f218d77732 Simplifying 2011-05-24 10:25:25 +03:00
Markus Kauppila
553838dce5 Tiny changes to runner 2011-05-23 17:49:06 +03:00
Markus Kauppila
5af8eaab18 Added assertEquals(Uint32, Uint32) function 2011-05-23 13:14:09 +03:00
Markus Kauppila
f052579c0b Tiny Makefile.in fixes 2011-05-23 10:43:49 +03:00
Markus Kauppila
f9c339ef02 Bootstrapping build process using proof-of-concept test runner. 2011-05-20 13:50:52 +03:00
Sam Lantinga
cca381f73f Added test of the assertion reporting system 2011-04-19 11:41:45 -07:00
Sam Lantinga
6196aa221e SDL 1.3 is now under the zlib license. 2011-04-08 13:03:26 -07:00
Sam Lantinga
93d1e1f0bf Backed out changeset ef550bdb8c1b 2011-03-28 20:33:41 -07:00
Ryan C. Gordon
af4cde4abc If a test program window resizes, resize its viewport, too. 2011-03-28 23:20:54 -04:00
Ryan C. Gordon
fe1c0bd3ae Added orientation rotation for iOS. 2011-03-28 23:21:22 -04:00
Sam Lantinga
ae58a49f62 NDS update
Frank Zago to SDL

There's also a patch to adapt one test for the nds, and that adds several
makefiles to compile these tests. Whenever you apply it, could you completely
remove the test/nds-test-progs/sprite and test/nds-test-progs/sprite2
directories ?
2011-03-26 21:28:17 -07:00
Sam Lantinga
065886413a Temporarily removing sprite and sprite2 at Frank's request 2011-03-26 21:27:23 -07:00
Sam Lantinga
56c4464487 Added high resolution timing API: SDL_GetPerformanceCounter(), SDL_GetPerformanceFrequency() 2011-03-25 14:45:04 -07:00
Sam Lantinga
f0c424685b SDL 1.3 requires a 64-bit type for the platform. 2011-03-25 13:47:49 -07:00
Sam Lantinga
b12e397498 Don't be clever, just call it testthread 2011-03-25 11:09:57 -07:00
Sam Lantinga
2d4e47a5a7 Added a function to create color cursors: SDL_CreateColorCursor() 2011-03-11 14:14:38 -08:00
Sam Lantinga
93c94e872e Fixing permissions 2011-03-11 13:22:43 -08:00
Sam Lantinga
069fbf4861 Gamma support is back!
New API functions:
	SDL_SetWindowBrightness()
	SDL_GetWindowBrightness()
	SDL_SetWindowGammaRamp()
	SDL_GetWindowGammaRamp()
	SDL_CalculateGammaRamp()
2011-03-11 08:49:20 -08:00
Sam Lantinga
9a54623af4 Added screenshot support for tests using the common framework. 2011-03-10 00:58:45 -08:00
Sam Lantinga
5bd2b6863a Fixed bug 1163 (SDL_TEXTINPUT not being received on iPhoneOS) 2011-03-09 17:38:12 -08:00
Sam Lantinga
5dcb9d6a2a Removed newlines from log messages
Slightly speeded up event history processing each frame
2011-03-09 15:51:51 -08:00
Sam Lantinga
f2f0596d35 Use SDL_Log() so the messages show up on iPhone and Android 2011-03-09 15:08:41 -08:00
Sam Lantinga
ee32f9fe9d Make the globals static so they're initialized to zero. 2011-03-09 14:47:37 -08:00
Sam Lantinga
848802dbb4 Fixed testgesture to work on the iPhone 2011-03-09 14:46:09 -08:00
Sam Lantinga
8261852483 Fixed warning on Windows 2011-02-28 23:50:07 -08:00
Sam Lantinga
f0ee261c7b Implemented mouse relative mode on Mac OS X. 2011-02-27 22:06:46 -08:00
Sam Lantinga
0068b61c49 Added a cleaner way to set the default cursor.
Added a way to cycle through the default cursor in testcursor.c
2011-02-27 21:36:23 -08:00
Sam Lantinga
8b92536842 Fixed minimizing fullscreen windows.
Removed misleading hide/unhide Cocoa notifications.
We have no way of knowing when a Cocoa window is maximized and then restored (right?)
Disabled spamy mouse motion events by default.
2011-02-27 21:17:06 -08:00
Sam Lantinga
7fa84f6a78 Re-added the 3DNow! and AltiVec instruction support. 2011-02-22 21:44:36 -08:00
Sam Lantinga
437682d6dc Fixed testgles on iOS (bug 1136) 2011-02-20 14:16:11 -08:00
Sam Lantinga
2788694b17 Simple rumble API for haptic
Edgar Simo      2011-02-20 10:27:52 PST

Adding patch that adds a simplified API for the haptic subsystem built ontop of
the "real one" for those who want simple rumble without jumping through hoops.

Adds 4 functions:

- extern DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic * haptic, float
strength, Uint32 length );
- extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic);

Also provided is test/testrumble.c which does test this.

This has all been tested on linux and has worked, but due to being built ontop
of the other haptic API it should work on all OS the same.
2011-02-20 10:54:44 -08:00
Sam Lantinga
a0a3c805a2 Added a revision number for easy compile-time tests. 2011-02-20 10:42:51 -08:00
Sam Lantinga
d72eb6eedc Reset the viewport since we're stretching to the entire window. 2011-02-20 09:24:02 -08:00
Sam Lantinga
b8b0cce2e0 We have the correct window, we don't have to search for it, duh. :) 2011-02-19 11:26:49 -08:00
Sam Lantinga
307a90d292 Made it possible to build SDL from a fresh checkout without any additional steps.
The trick is that if you're using configure and you don't want to have SDL_config.h and SDL_revision.h to show up as modified, you need to configure and build from a separate directory.

You also need to include SDL_revision.h directly if you want to use the SDL_REVISION constant, as a side effect of these changes.
2011-02-16 02:37:09 -08:00
Sam Lantinga
dc4e118053 Hot damn, SDL_WM_ToggleFullScreen() works on all platforms now. :) 2011-02-16 00:45:10 -08:00
Sam Lantinga
749abb9261 Allow centering on a different display 2011-02-15 22:51:29 -08:00
Sam Lantinga
b59da3ffdc Changed the concept of a render clip rect to a render viewport.
The render viewport is automatically re-centered when the window changes size, so applications that don't care will not have to handle recalculating their rendering coordinates.

Fixed API for drawing and filling multiple rectangles - the parameter should be an array of rects, not an array of pointers to rects.

Fixed API for updating window rects for consistency with other APIs - the order is pointer to array followed by count in array.
2011-02-15 13:59:59 -08:00
Sam Lantinga
e66826bbdf Patch from Ken Rogoway:
Migrate all of the recent changes into the SDL VS2005 project file.
Fix missing return value in SDL_pixels.c
Fix compile error in testscale.c, variable was incorrectly named.
Added VS2005 project file for testscale
2011-02-14 00:45:16 -08:00
Sam Lantinga
ea3c0c473a Updated the platform test for the new CPU feature functions. 2011-02-13 01:29:29 -08:00
Sam Lantinga
f1441f7929 changeset: 5278:b4b71ec2af73
tag: tip
user: Martin Decky <martin@decky.cz>
date: Sat Feb 12 22:27:14 2011 +0100
summary: fix typo (assigning height value into displayrect.w instead of displayrect.h)
2011-02-12 17:36:09 -08:00
Sam Lantinga
362639036a Frank Zago to sdl
The following patch fixes some of the bitrot for the Nintendo DS port.
The support is still basic at the moment, but it allows to run the "general"
test under the current head of tree (parent: 5269:11bd1585efb5 tip).
Most of the patch is mine, but I integrated a couple changes that John
Magnotti posted on Feb 1st.
2011-02-12 11:36:56 -08:00
Sam Lantinga
5e1535525c Initial pass at shader YV12 support - doesn't quite work yet. 2011-02-12 00:25:02 -08:00