Commit graph

96 commits

Author SHA1 Message Date
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Cameron Cawley
2b3521dc87 TESTBED: Use OSystem::copyRectToScreen() and fillScreen() where possible
Also fixed invalid use of screen surface after unlocking
2024-01-07 11:09:34 +02:00
Cameron Cawley
b6947c78eb TESTBED: Add a test case for alpha cursors 2023-10-29 02:02:11 +02:00
Thierry Crozat
a1d674d6ba TESTBED: Update shaking test to also test negative offsets 2023-03-06 20:09:45 +00:00
Eugene Sandulenko
c2d6c84e65
TESTBED: Added test for fonts scaling 2023-02-25 15:29:30 +01:00
elasota
325674ace7 GRAPHICS: Add masked cursor support to SurfaceSdl, fix tests 2023-02-19 23:51:09 +01:00
elasota
76d84718e2 GRAPHICS: Corrected semantics for MacOS cursors 2023-02-19 23:51:09 +01:00
elasota
866e459992 TESTBED: Add tests for masked and inverted cursors. 2023-02-19 23:51:09 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
3919f53326 ENGINES: Replace new[]/memset with new[]() 2021-11-10 19:53:15 +01:00
Le Philousophe
f94c56f100 TESTBED: Don't fail when pixel format couldn't be set
When pixel format isn't supported an assertion can be raised during
blitting. Don't draw anything instead.
2021-07-05 23:19:51 +03:00
lolbot-iichan
728e41e347
TESTBED: Fix STATIC_ASSERT expression compilation on gp2x-1 (#3021) 2021-05-21 03:29:41 +03:00
lolbot-iichan
fb7ef86cf3
TESTBED: Modify Pixel Format tests to display brightness and alpha gradients (#3019)
* TESTBED: Sort Pixel Formats before displaying them

* TESTBED: Display color gradients while testing Pixel Formats

* TESTBED: Display example patterns with CLUT8 pixel formats
2021-05-20 23:25:09 +03:00
lolbot-iichan
2367dd8f98
TESTBED: Add another PixelFormat test (#3009)
* TESTBED: Add another PixelFormat test

I have noticed that Wintermute and FullPipe games are not working on PSP
port (and it looks like they never worked). This was caused by missing
ABGR8888@4 support on the backend, while some engines explicitly
requested this Pixel Format.

I have decided to add a test so that all the backends could be easily
checked for similar issues.

Surprisingly, "backends/graphics/null/null-graphics.h" holds up-to-date,
full and correct list of pixel formats requested by different engines.
There are lots of different Pixel Formats mentioned in different engines
code, but NullGraphicsManager lists all that are explicitly needed for
intGraphics(), not data reading, etc...

* TESTBED: Avoid using NullGraphicsManager at PixelFormat test

Avoid using NullGraphicsManager at PixelFormat test + other minor tweaks
2021-05-14 12:31:57 +03:00
Cameron Cawley
78015cbd04 TESTBED: Centre the rectangle on screen in the overlay test
This fixes an assert in the DS port due to the rectangle being drawn out of bounds.
2021-02-04 01:59:14 +01:00
lolbot-iichan
3f10dbeac6 TESTBED: Move code with side-effects away from testsuite constructor 2020-06-13 16:29:17 +02:00
sluicebox
79d636ba8a TESTBED: Add horizontal/diagonal shake tests 2019-11-19 00:20:40 +01:00
sluicebox
b8390fa161 GRAPHICS: Add interface for horizontal shake 2019-11-19 00:20:40 +01:00
Adrian Frühwirth
cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Adrian Frühwirth
cf96f3f709 JANITORIAL: Indent GFXTransaction code blocks 2018-04-15 16:45:25 +02:00
Thierry Crozat
48ec053a13 TESTBED: Add test for kFeatureFilteringMode 2016-10-13 01:45:01 +01:00
Thierry Crozat
0a186a66d6 TESTBED: Fix fullscreen test
The test was always failing when starting from the fullscreen state.
2016-10-12 23:04:42 +01:00
Eugene Sandulenko
1dc0411ff9 TESTBED: Listen to events during mouse move test 2016-09-04 16:24:03 +02:00
Eugene Sandulenko
302562de38 TESTBED: Added mouse cursor 2016-09-03 22:56:09 +02:00
Johannes Schickel
3edca1abb4 TESTBED: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Johannes Schickel
764a34edf7 TESTBED: Make code agonstic to OverlayColor. 2013-08-16 05:34:44 +02:00
Johannes Schickel
571fa94310 TESTBED: Fix "if" formatting. 2012-08-09 03:27:21 +02:00
Johannes Schickel
aec9b9e22a ALL: Let overlay related methods in OSystem take a void * and use a proper pitch values.
This is a first step to get rid of OverlayColor, which is a requirement for
proper 4Bpp overlay support.
2012-06-16 04:17:14 +02:00
Julien
55f46a1376 TESTBED: Fix GFXtests::HSVtoRGB() and caller
- update passed values and not local variables when s == 0
 - initialize r, g, b values in palette rotation test instead of passing unitialized variables
2011-06-07 03:59:12 -04:00
Julien
6362542836 TESTBED: Remove dead code, unused arguments and unreferenced symbols 2011-06-07 03:56:18 -04:00
Julien
08c01d116b TESTBED: Add const modifiers to some parameters/functions 2011-06-07 03:52:15 -04:00
Max Horn
91b889e2d3 COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette 2011-06-04 11:55:56 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
8aa6d25c77 ALL: centerd -> centered 2011-04-14 14:42:21 +02:00
Max Horn
2e095e25f2 ALL: centre -> center 2011-04-14 14:34:28 +02:00
md5
8af0d35a5f TESTBED: Changed usage of PI to M_PI (normally defined in math.h) 2011-03-19 02:32:53 +02:00
md5
8cfcf53b88 TESTBED: Update rotatePalette() to use an RGB palette 2011-03-04 11:44:30 +02:00
Johannes Schickel
02f93b4aeb TESTBED: Adapt to setPalette RGBA->RGB change. 2011-02-14 17:08:33 +01:00
Max Horn
ab039812e7 COMMON: OSystem now has a PaletteManager
svn-id: r55806
2011-02-07 17:52:38 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Neeraj Kumar
a16832760b 1. Added ConfigParams Singelton class to eliminate use of configuration specific static variables.
2. Modified code to handle the change
3. Updated the previously merged obsolete copy of branch gsoc2010-testbed.

svn-id: r52973
2010-10-02 01:05:16 +00:00
Filippos Karapetis
6fed6a75d5 TESTBED: Fix warnings
svn-id: r52790
2010-09-18 09:52:05 +00:00
Eugene Sandulenko
09ae34f4a4 TESTBED: Fix warnings
svn-id: r52685
2010-09-12 14:20:52 +00:00
Neeraj Kumar
81a646c9bd TESTBED: added a README file, some description fixes
svn-id: r52134
2010-08-16 22:04:15 +00:00
Neeraj Kumar
5e26238916 TESTBED: disable aspect ratio correction while running scaling tests
svn-id: r52111
2010-08-16 04:27:05 +00:00
Neeraj Kumar
0a7bda50cc TESTBED: formatting fix, deleted spaces/tabs at end of line
svn-id: r52081
2010-08-14 08:32:39 +00:00
Neeraj Kumar
acb32580ce TESTBED: Some more refinements to the GUI and mouse event tests
svn-id: r51946
2010-08-09 21:18:27 +00:00
Neeraj Kumar
4e92b3a17e TESTBED: Some refinemnts related to skipping tests and display in GUI
svn-id: r51945
2010-08-09 20:10:53 +00:00
Neeraj Kumar
a9941138da TETBED: fixed the boundary error in palette rotation, added colored progress bar now
svn-id: r51284
2010-07-25 20:50:59 +00:00