Sam Lantinga
4969fa9624
On Windows the minimum window size may be larger than 80, so explicitly request the expected rectangle.
2009-12-07 08:01:20 +00:00
Sam Lantinga
586f3e0dda
Added an API function to query geometry of multiple monitors:
...
SDL_GetDisplayBounds()
Implemented multi-monitor window positions on Windows
2009-12-06 08:03:38 +00:00
Sam Lantinga
262da78936
Added Ctrl-Z common key binding
2009-12-02 07:56:09 +00:00
Sam Lantinga
8adb9fc3cc
Work in progress on multi-display support:
...
* Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one.
* The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
2009-12-01 05:57:15 +00:00
Sam Lantinga
c0f5e8a979
More fixes to compile under Visual C++
2009-11-22 07:00:26 +00:00
Sam Lantinga
411ee2e374
Fixed include paths for Visual C++
2009-11-22 06:42:58 +00:00
Mike Gorchak
f54a8cc44d
Added support for QNX default font. Backspace and Return keys now handled.
2009-11-21 08:42:42 +00:00
Sam Lantinga
7125fdbe63
We want to be strict on software renderer tests and opaque tests, but give a decent margin for blending inaccuracy for the blended tests.
2009-11-21 07:59:19 +00:00
Sam Lantinga
fc6a229f72
Increased tolerance a little bit more for multiple blending passes accumulating error.
2009-11-21 07:46:12 +00:00
Sam Lantinga
7863b8a31b
Use 45 degree lines for the diagonal test to avoid aliasing errors in line drawing.
2009-11-21 06:28:25 +00:00
Sam Lantinga
3808553966
pixels don't need to be dynamically allocated
...
Added a dump_screen() function to assist with test failure diagnosis
2009-11-21 05:25:08 +00:00
Sam Lantinga
32188b63d3
SDL_RenderReadPixels() needs to flush asynchronous operations before it reads.
...
The semantics are that it reads the back buffer, and those pixels may not be available once SDL_RenderPresent() has happened.
2009-11-21 05:05:19 +00:00
Mike Gorchak
b6c6b41bb5
1. SDL_RenderPresent() call has been added after each test to be sure, that all graphics output is flushed in case if it was asynchronous.
...
2. After each renderer test window recreation has been added.
2009-11-20 07:11:29 +00:00
Mike Gorchak
e7e2a01f50
Output last SDL error in case of test was failed.
2009-11-20 07:08:28 +00:00
Mike Gorchak
8a2f3c4aeb
Added support for generic getopt() function instead of getopt_long(). Because not all platforms have getopt_long().
2009-11-19 09:07:09 +00:00
Sam Lantinga
98198245bc
Allow some variation in the pixel values to account for blending accuracy differences.
2009-11-19 05:06:01 +00:00
Sam Lantinga
dce6c3f274
Fixed a bunch of bugs in the blit blend mode tests
2009-11-18 09:39:32 +00:00
Sam Lantinga
e671076c62
Use SDL's string and memory functions instead of stdlib
2009-11-18 09:28:35 +00:00
Sam Lantinga
8259a10e12
Fixes for the automated rendering test
2009-11-18 09:07:13 +00:00
Sam Lantinga
f07fad9ec7
Refactored to use render_loadTestFace()
2009-11-18 07:34:05 +00:00
Sam Lantinga
cacae661e6
Fixed endianness of the face image surface
2009-11-18 07:22:22 +00:00
Sam Lantinga
754e60b870
Compare against the correct image
2009-11-18 06:15:21 +00:00
Sam Lantinga
c14ffddbcc
Debug info to help track down render test failures
2009-11-17 06:51:14 +00:00
Sam Lantinga
6820ff5982
Fixed some bugs in the automated test suite, revealed by working SDL_RenderReadPixels()
2009-11-17 05:17:11 +00:00
Sam Lantinga
7a40c23469
You can specify the format for pixel data in SDL_RenderReadPixels() and SDL_RenderWritePixels()
...
This code still doesn't quite work yet. :)
2009-11-16 07:13:07 +00:00
Sam Lantinga
1e8b087237
Work in progress: SDL_RenderReadPixels() should be implemented soon.
2009-11-15 08:01:07 +00:00
Sam Lantinga
ed1b37d2bc
Fixed compile error
2009-10-28 06:08:48 +00:00
Sam Lantinga
bce225654d
Automatically initialize the video system and create a renderer to simplify use.
2009-10-28 06:04:07 +00:00
Mike Gorchak
a96535b75f
Optimizations.
2009-10-22 06:07:05 +00:00
Mike Gorchak
f53e17a4df
Support for GL initialization parameters has been added.
2009-10-21 14:51:42 +00:00
Mike Gorchak
b77e19d366
Fixed memory allocation size.
2009-10-13 20:16:23 +00:00
Mike Gorchak
aa0ea9891e
Fixed handling of the initial window size.
2009-10-13 18:14:22 +00:00
Mike Gorchak
aafbae15c5
Options --double --triple have been added to test double and triple buffering.
2009-10-13 11:24:36 +00:00
Mike Gorchak
696387e501
Revert back. Sorry.
2009-10-10 17:07:49 +00:00
Mike Gorchak
0083177b43
Call CommonQuit() at exit has been added.
2009-10-10 13:22:05 +00:00
Mike Gorchak
2b98843157
Created windows must be destroyed at CommonQuit().
2009-10-10 13:21:21 +00:00
Ryan C. Gordon
e189bdc695
Use new 1.3 API for getting audio driver name.
2009-10-10 06:39:59 +00:00
Ryan C. Gordon
22051c78fb
Added some debug output to loopwave.c
2009-10-10 06:32:11 +00:00
Sam Lantinga
0d51e1e26a
Fixed bug #817
...
Daniele Forghieri 2009-09-30 15:48:24 PDT
Some tests doesn't use the correct include statement (and there are some
missing declaration) and some test use C++ variable after statement, preventing
compile wicth Open Watcom
The patch attached fixes this
2009-10-04 09:55:20 +00:00
Sam Lantinga
c2a31c3fec
Better cross-platform macros for printing 32 and 64 bit values
2009-09-29 01:19:14 +00:00
Bob Pendleton
821a7b0630
Ok, added long casts to get rid of compiler warnings.
2009-09-28 18:44:26 +00:00
Sam Lantinga
244f6a3ccf
Added renderer information for dynamic OpenGL test
2009-09-28 15:32:19 +00:00
Sam Lantinga
bd908a682f
Fixed bug #777
...
Implemented SDL_GetPlatform()
2009-09-26 10:32:14 +00:00
Sam Lantinga
f0bf2e399c
Fixed bug #705
...
Sami N 2009-02-21 11:15:39 PST
Patches two tests that had broken format strings in their *printf()'s.
2009-09-26 09:57:32 +00:00
Sam Lantinga
731c5d1558
Fixed bug #705
...
Sami N 2009-02-21 11:15:39 PST
Patches two tests that had broken format strings in their *printf()'s.
2009-09-26 09:56:26 +00:00
Bob Pendleton
14a51aa4c4
int testmmousetable.c the arguments to main() are not compatible with what is required in SDL_main.h
...
Cleaned up testatomic.c to use the same syntax as every other test program.
2009-09-23 02:52:11 +00:00
Sam Lantinga
08761c33de
Whoops, this breaks building on Mac OS X 10.4
2009-09-22 02:20:56 +00:00
Sam Lantinga
4fb13ccee8
Fixed bug #674
...
Matej 2009-01-08 09:25:34 PST
Hello,
I maintain a cross-platform project that uses SDL.
One of the users who runs OSX has told me that he has problems with linking to
SDL due to missing -framework option.
I think that the problem is because of this:
'sdl-config --libs' outputs '-L/opt/local/lib -lSDLmain -lSDL
-Wl,-framework,Cocoa'
All the options are passed to the linker except the last one. I think that the
good output should be just:
'-L/opt/local/lib -lSDLmain -lSDL -framework Cocoa'
since those options (--libs) are passed to the linker, so the '-Wl' option is
redundant and possibly harmful in this very case
I use autotools with libtool to do the build...
Regards,
Matej
2009-09-21 10:23:19 +00:00
Sam Lantinga
a1ee906546
Fixed bug #615
...
Scott McCreary 2008-08-21 10:48:14 PDT
This patch adds support for Haiku.
http://ports.haiku-files.org/browser/haikuports/trunk/media-libs/libsdl/SDL-1.2.13-haiku.diff
Haiku is an open-source recreation of BeOS. It has better POSIX compliance
than beOS did, and other improved features, which in some cases causes us to
have to "undo" previous BeOS workarounds.
Here's our port log entry for it, showing the steps to force the changes into
configure and Makefile:
http://ports.haiku-files.org/wiki/media-libs/libsdl/1.2.13/1
Note that this was only tried on 1.2.13 stable so far.
Haiku is using a newer config.guess / config.sub that doesn't yet seem to be in
the released libtool, so we are having to copy it in for now.
http://haiku-files.org/files/optional-packages/
2009-09-21 09:21:00 +00:00
Sam Lantinga
8ced47d33f
Fall back to opaque sprite if no formats with alpha are supported.
2009-09-20 23:09:30 +00:00