Commit graph

76 commits

Author SHA1 Message Date
Eugene Sandulenko
aae5703d4c
SLUDGE: Fix usage of deprecated ManagedSurface methods 2024-10-24 15:07:02 +02:00
polyesterswing
b292e202ce SLUDGE: Replace TransparentSurfaces with ManagedSurfaces 2023-10-24 18:31:31 +02:00
Wyatt Radkiewicz
41a942c5ce ALL: Renamed TS_ARGB to MS_ARGB 2023-08-13 00:22:10 +02:00
Sebastian Krzyszkowiak
40fc49256d SLUDGE: Make sure initial backdrop gets its alpha channel stored
OpenSLUDGE draws the first backdrop image with alpha channel
intact. Afterwards, next images are blended with previous backdrop
contents.

So far ScummVM always did the later part, but never the former,
which caused parallax to not work as it relies on alpha channel
being propagated into backdrop (which gets initiallly filled
with opaque black, so it had no chance to ever be transparent).

Fix that by clearing the area the first backdrop image is about
to get blitted into with full transparency.
2023-01-16 17:57:04 +01:00
Sebastian Krzyszkowiak
8f1d5a0c4c SLUDGE: Fix camera getting reset after loading saved game
loadHSI calls reserveBackdrop, which resets camera values.
Apply camera position and zoom in loadBackdrop after calling
loadHSI, so the stored camera state gets preserved.
2023-01-13 23:56:09 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Eugene Sandulenko
f1196d909a
SLUDGE: Fix crash at save 2021-05-16 00:53:39 +02:00
Eugene Sandulenko
b108f1377e
SLUDGE: Further work on parallax rendering 2021-05-14 01:01:58 +02:00
Eugene Sandulenko
98b0fe53bc
SLUDGE: Added more debug output to parallax drawing 2021-05-14 01:01:58 +02:00
Eugene Sandulenko
90a998f742
SLUDGE: Added debug ouptut to parallax drawing 2021-05-14 01:01:58 +02:00
Eugene Sandulenko
836825abcf
SLUDGE: Merge Parallax stuff back into GraphicsManager 2021-05-14 01:01:58 +02:00
Eugene Sandulenko
b93aa9b05d
SLUDGE: Fix transparency handling 2021-05-12 23:19:19 +02:00
Eugene Sandulenko
28e4e46707
SLUDGE: Reduce header dependencies 2021-05-07 01:29:53 +02:00
Eugene Sandulenko
e3da6f47b5
SLUDGE: Remove unused files and redundant header 2021-05-07 01:29:52 +02:00
Eugene Sandulenko
73c9875529
SLUDGE: Wrap status bar into a class
This lets us get rid of the global constructors
2021-05-07 01:29:52 +02:00
Eugene Sandulenko
2270799dac
SLUDGE: Dump images 2021-05-07 01:29:52 +02:00
D G Turner
904e58c35b SLUDGE: Really Fix MSVC Warnings 2019-10-03 04:57:18 +01:00
D G Turner
743d64bf53 SLUDGE: Further Fixes for MSVC Warnings
This _should_ fix the remaining issues with signed vs. unsigned
warnings in the TransparentSurface blit method calls.
2019-10-03 03:56:31 +01:00
D G Turner
75ee80cf1e SLUDGE: Fix Some MSVC Warnings 2019-09-30 04:41:54 +01:00
Sebastian Krzyszkowiak
06e1d6808f SLUDGE: fix background position not taking camera into account
When a game sets camera position with aimCamera, the background should
move together with all the objects above it.
2019-06-18 02:13:05 +03:00
Simei Yin
2ab7665e56 SLUDGE: Move SetVariable() into struct Variable 2018-05-31 23:15:09 +02:00
Simei Yin
4b271c6e7c SLUDGE: Remove global variable fadeMode and move transition functions to GraphicsManager 2018-04-29 09:57:32 +02:00
Simei Yin
da491601d4 SLUDGE: Move global variable brightnessLevel to GraphicsManager and refactor save&load 2018-04-27 19:48:29 +02:00
Simei Yin
d98016b222 SLUDGE: Objectify speech manager 2017-12-19 22:12:08 +01:00
Simei Yin
49383e0aee SLUDGE: Debug output lightmap image 2017-08-11 06:35:14 +02:00
Simei Yin
949dcaa4e2 SLUDGE: Prepare sprites for lightmap 2017-08-11 06:35:14 +02:00
Simei Yin
3a7e5f1647 SLUDGE: Fix backdrop loading error 2017-08-03 09:36:30 +02:00
Simei Yin
bbc781faaa SLUDGE: Fix backdrop loading 2017-08-03 03:50:15 +02:00
Simei Yin
44c5f5e474 SLUDGE: Refine debug channels 2017-08-02 17:46:42 +02:00
Simei Yin
c4fbb545a6 SLUDGE: Reset zBuffers when blank back drop 2017-08-02 17:46:42 +02:00
Simei Yin
0fb4a1ddd2 SLUDGE: Objectify input and event handler 2017-07-20 19:10:01 +02:00
Simei Yin
caa51ef49a SLUDGE: Change all structure names to Uppercase 2017-07-20 19:10:01 +02:00
Simei Yin
300e34d535 SLUDGE: Correct snapshot 2017-07-20 02:48:21 +02:00
Simei Yin
7e95f7dc63 SLUDGE: Fix backdrop loading for images not of the window size 2017-07-20 02:00:18 +02:00
Simei Yin
e617a53608 SLUDGE: Objectify graphic classes 2017-07-20 00:43:16 +02:00
Simei Yin
0e7d9b4eb2 SLUDGE: Objectify parallex and create graphics manager 2017-07-20 00:43:16 +02:00
Simei Yin
4fc6cef968 SLUDGE: Objectify resource manager 2017-07-18 19:05:04 +02:00
Simei Yin
a3876ee8c1 SLUDGE: Clean useless #if 0's 2017-07-15 17:51:57 +02:00
Simei Yin
59f9157106 SLUDGE: Remove gl-related graphics.h 2017-07-15 17:51:57 +02:00
Simei Yin
d53c43d092 SLUDGE: Add a color into stack machine 2017-07-15 17:51:57 +02:00
Simei Yin
cd384d10b2 SLUDGE: Add credit scrolling 2017-07-15 17:51:57 +02:00
Simei Yin
3672d99d4e SLUDGE: Complete parallax 2017-07-15 17:51:57 +02:00
Simei Yin
c25a6ba4af SLUDGE: Complete snapshot 2017-07-15 17:51:57 +02:00
Simei Yin
4a6feaefc8 SLUDGE: Use String::format instead of sprintf 2017-07-15 14:30:46 +02:00
Simei Yin
b60aa5eae7 SLUDGE: fix warnings 2017-07-13 23:29:26 +02:00
yinsimei
59ea5e5834 SLUDGE: use Graphics::Surface::drawLine instead of sludge defined drawLine 2017-07-13 18:27:45 +02:00
yinsimei
ae8df00f56 SLUDGE: replace abs() by scummvm ABS() 2017-07-13 18:27:45 +02:00
yinsimei
f8e1fe0064 SLUDGE: replace int types to scummvm defined ones 2017-07-13 18:27:45 +02:00
yinsimei
8152793d09 SLUDGE: save&load system (without thumbnail and snapshot) 2017-07-13 18:27:45 +02:00