Commit Graph
104 Commits
Author SHA1 Message Date
alxpnv 24312ed327 ASYLUM: bring back Load Game screen thumbnails 2022-08-02 14:39:09 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
alxpnv 6a53897ac3 ASYLUM: switch lighting effects to synchronous model 2021-11-25 14:55:25 +03:00
alxpnv a7f24a5990 ASYLUM: make sure async palette fades don't clash
Potential fix for bug no. 13089
2021-11-22 15:42:32 +03:00
Orgad Shaneh 57cdbc9072 ASYLUM: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
alxpnv 146941f368 ASYLUM: formatting 2021-10-25 13:07:57 +03:00
alxpnv e3af0aa2d1 ASYLUM: add missing va_end
CID 1453214
2021-09-20 14:10:48 +03:00
alxpnv eed6789af2 ASYLUM: fix buffer overrun
CID 1453215
2021-09-20 12:15:35 +03:00
alxpnv da95daf727 ASYLUM: remove Screen::takeScreenshot() 2021-06-17 15:40:10 +03:00
alxpnv 670d8d85f4 ASYLUM: use Common::sort() for sorting graphics queue items 2021-06-17 15:40:10 +03:00
alxpnv def627e510 ASYLUM: fix GCC warnings 2021-06-15 16:00:11 +03:00
alxpnv de5c31fb5e ASYLUM: fix graphics glitches caused by a bug in Screen::blitMasked() 2021-06-15 15:05:21 +03:00
alxpnv 007ab8c9ff ASYLUM: implement fade to grayscale 2021-05-20 15:36:11 +03:00
alxpnv c81c046450 ASYLUM: clean up destructors 2021-05-17 15:37:58 +02:00
alxpnv 77a35a5c75 ASYLUM: get rid of global constructors 2021-05-17 15:37:56 +02:00
alxpnv bf7755aa29 ASYLUM: fix integer overflow in Screen::graphicsSelectionSort() 2021-05-17 15:37:56 +02:00
alxpnv 48e164b2d7 ASYLUM: clean up includes 2021-05-17 15:37:54 +02:00
alxpnv 7c53e7560d ASYLUM: add const qualifier to silence a warning 2021-05-17 15:37:54 +02:00
alxpnv a6140c4944 ASYLUM: minor fixes (mostly formatting) 2021-05-17 15:37:51 +02:00
alxpnv 9d14df2602 ASYLUM: fix dstPitch 2021-05-17 15:37:50 +02:00
alxpnv 5649a0e257 ASYLUM: fix 'zoom' out of bounds 2021-05-17 15:37:45 +02:00
alxpnv 7dd49418c9 ASYLUM: fix a bug in Screen::graphicsSelectionSort() 2021-05-17 15:37:45 +02:00
alxpnv e8fb7048dc ASYLUM: fix a crash caused by Screen::bltMasked() 2021-05-17 15:37:38 +02:00
Alexandre Fontoura 30109163b4 ASYLUM: Fixed MacOS crash. Poll Events not allowed outside the main thread. 2021-05-17 15:37:36 +02:00
D G Turner 86eee35eb4 ASYLUM: Correct Compilation On Newer GCC.
The abs() function returns double, but the ScummVM common/util version
should be used instead which is ABS().
2021-05-17 15:37:32 +02:00
Alexandre Fontoura 52fe2f8455 ASYLUM: debug for non implemented palette functions instead of error, so we can proceed with the game. A lot of bugs but we can now go to the next level :) 2021-05-17 15:37:30 +02:00
Alex Bevilacqua baf4fa93cb ASYLUM: access surface pixels via getPixels() 2021-05-17 15:37:27 +02:00
Littleboy 6d591a9a99 ASYLUM: Add timer ID to installTimerProc() call in Screen::startPaletteFade() 2021-05-17 15:37:22 +02:00
Littleboy 21fa0d155e ASYLUM: Fix some potential out of bound array accesses 2021-05-17 15:37:21 +02:00
Littleboy 156ffb1276 ASYLUM: Simplify Screen::setPaletteGamma() 2021-05-17 15:37:21 +02:00
Littleboy 341bf99614 ASYLUM: Cleanup Screen class 2021-05-17 15:37:21 +02:00
Julien Templier da7fd8c203 ASYLUM: Fix GCC warning in Screen::paletteFade() 2021-05-17 15:37:11 +02:00
Julien Templier 9746136ee3 ASYLUM: Fix palette fading corruption (visible in the cinematics menu when starting a video) 2021-05-17 15:37:10 +02:00
Julien Templier 6201a4cf9e ASYLUM: Implement more palette related functions
- Use Screen::setupPalette() in Video class instead of setting the palette directly
- Implement Screen::updatePalette()
- Cleanup usage of Screen::setupPalette()
2021-05-17 15:37:10 +02:00
Julien Templier 6475c3d9f9 ASYLUM: Implement Screen::paletteFade() 2021-05-17 15:37:10 +02:00
Julien Templier 86126add5f ASYLUM: Implement palette fading timer and related functions 2021-05-17 15:37:10 +02:00
Julien Templier fb8afdc6d6 ASYLUM: Palette and gamma functions update
- Identify dead code and remove unused parameters
- Rename several gamma and palette-relted functions
- Add stubs for palette fading functions
2021-05-17 15:37:10 +02:00
Julien Templier cb241adfae ASYLUM: Fix credit text disappearing instead of fading out when at the top of the screen 2021-05-17 15:37:08 +02:00
Julien Templier 6a31a7406d ASYLUM: Add a set of functions to pass a GraphicResource* directly to Screen::draw()
This makes the drawing of text a lot faster since we don't have to decode
the font resource (and read each frame) for every character.
2021-05-17 15:37:07 +02:00
Julien Templier 901f032b77 ASYLUM: Fix debug drawing of zoomed mask 2021-05-17 15:37:07 +02:00
Julien Templier 015c1cfb92 ASYLUM: Fix valgrind problems reported by eriktorbjorn
- malloc/free problem in screen.cpp
- uninitialized variables (screenUpdateCount and lastScreenUpdate) usage in actor.cpp
2021-05-17 15:37:06 +02:00
Julien Templier 4c4027200a ASYLUM: Implement Screen::bltMasked()
This is still slightly buggy (every other frame is slightly corrupted)
2021-05-17 15:37:05 +02:00
Alex Bevilacqua 7454be17cc ASYLUM: fix logic error in Screen::setGammaLevel 2021-05-17 15:37:05 +02:00
Alex Bevilacqua 01f4a0769c ASYLUM: implement Screen::setPaletteGamma and part of Screen::setGammaLevel 2021-05-17 15:37:05 +02:00
Julien Templier 81c6898fa6 ASYLUM: Simplify handling of transparency tables
The original uses an optimization to be able to hold the transparency table address + offset into a single register by clearing the lower 16 bits of the address. Not doing so simplifies the code and saves an allocation of 65536 bytes.
2021-05-17 15:37:03 +02:00
Julien Templier 62d576eae5 ASYLUM: Add debug drawing of zoomed mask
- Update blit functions parameters
2021-05-17 15:37:03 +02:00
Julien Templier 3727e9a820 ASYLUM: Add option to draw the scene rects 2021-05-17 15:37:02 +02:00
Julien Templier a5e03e18a1 ASYLUM: Implement Screen::blitCrossfade()
- Update parameters to some blit functions for consistency
- Revert changes to Screen::clip (our clipRect is different from the original)
2021-05-17 15:37:02 +02:00
Julien Templier e44da6e34a ASYLUM: Update Screen::blitTranstable() 2021-05-17 15:37:01 +02:00
Julien Templier faaa1c1426 ASYLUM: Correct Screen::clip() and check for valid source rectangle in Screen::draw()
This fixes the crash in the credits screen (although there is still some memory and graphic corruption with transparency table blits)
2021-05-17 15:37:01 +02:00