Commit Graph
38 Commits
Author SHA1 Message Date
Vladimir Serbinenko ffdf90df45 NEVERHOOD: Allocate more space for font surface
NHC-based Russian translation has extra unused space in the sprite.
This causes the code to skip drawing sprite on the surface altogether.
The simplest solution is to simply allocate a bit more with only
downside is a small increase in memory footprint
2022-12-31 20:47:10 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 9dab832214 NEVERHOOD: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
johndoe123 bdee71f279 NEVERHOOD: Implement clipping in BaseSurface::copyFrom
This should hopefully fix the crashes in the Hall of Records as mentioned in bug #6513.
2014-06-26 19:19:28 +02:00
Torbjörn Andersson b565d0bf24 NEVERHOOD: Fix memory leak in BaseSurface
I hope this will help the memory leak reported as part of bug #6513
but my computer isn't quite up to the task of doing any extensive
Valgrind testing.
2014-05-05 07:20:49 +02:00
Johannes Schickel 6563171e7b NEVERHOOD: Make GPL headers consisten in themselves. 2014-02-18 02:39:36 +01:00
johndoe123 4137128cf6 NEVERHOOD: Fix sprite shadows (e.g. when on top in module 1000, scene 1) 2014-01-09 15:33:47 +01:00
Sven Hesse 989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Eugene Sandulenko 726ae06d44 NEVERHOOD: Fix warning 2013-06-22 11:19:44 -04:00
Filippos Karapetis d00f5c0aa7 NEVERHOOD: Add a console command to display the current surfaces 2013-06-09 17:13:23 +03:00
johndoe123 bdac28929f NEVERHOOD: Add Y-flipping to unpackSpriteNormal 2013-05-08 20:47:43 +02:00
johndoe123 f945448c7b NEVERHOOD: Change graphic resource draw method to get a Surface instead of separate pixels/pitch
- Merge SpriteResource::load and load2
2013-05-08 20:47:40 +02:00
johndoe123 a98d9aa58a NEVERHOOD: Clean up DiskplayerScene
- Enable return to launcher
- Remove obsolete comments
- Remove braces in single-line statements
- Remove unused non-transparent drawing code in BaseSurface::copyFrom
- Clean up mouse cursor insertion code in Scene class
2013-05-08 20:47:39 +02:00
johndoe123 6ddedc955a NEVERHOOD: Merge TextSurface into FontSurface 2013-05-08 20:47:39 +02:00
johndoe123 cc015e3d24 NEVERHOOD: Simplify resource loading
- Renamne and clean up
2013-05-08 20:47:38 +02:00
johndoe123 1b9807b312 NEVERHOOD: Remove more old comments
- Add the remaining idle stuff to Klayman
2013-05-08 20:47:38 +02:00
johndoe123 6be5c11713 NEVERHOOD: More work on the menu system:
- Add handling of ascii and system key input
- Fix TextSurface::drawChar()
- Pause audio when entering the menu, resume it again afterwards
- Add TextEditWidget
- Add SaveGameMenu (doesn't actually save anything yet and needs more work)
2013-05-08 20:47:37 +02:00
johndoe123 c7ad09c685 NEVERHOOD: Remove BaseSurface::addDirtyRect() which is obsolete as well 2013-05-08 20:47:32 +02:00
johndoe123 c09c0b8998 NEVERHOOD: Implement an experimental "render queue" to only draw and update what's actually changed; it works surprisingly well so far and only needs a few more changes here and there 2013-05-08 20:47:31 +02:00
johndoe123 9858705772 NEVERHOOD: Graphics related changes/fixes:
- Add BitmapFlags enum
- Merge unpackSpriteRle and unpackSpriteRleRepl
- Implement Y flipping in unpackSpriteRle
- Fix Y flipping in AsScene2804CrystalWaves
2013-05-08 20:47:07 +02:00
johndoe123 15cfb9f787 NEVERHOOD: Implement clipping against multiple clipRects, used only in several scenes for the Klayman sprite.
Currently only implemented in KmScene2201 for testing.
2013-05-08 20:43:48 +02:00
johndoe123 96153bfe04 NEVERHOOD: Implement TextSurface, used in the save/load menus 2013-05-08 20:43:42 +02:00
johndoe123 d1d1596fd1 NEVERHOOD: Add support for shadow sprites, used only for the shadow of the car/vehicle thing 2013-05-08 20:43:41 +02:00
johndoe123 463039c406 NEVERHOOD: Add Scene2706
- Move calcDistance from Class521 to graphics.cpp
2013-05-08 20:39:42 +02:00
johndoe123 730844f1b7 NEVERHOOD: Implement Scene2208 (viewer for Hall Of Records text)
- Implement Screen::drawSurface3 and Screen::drawUnk and move actual blitting code to Screen::blit
2013-05-08 20:39:36 +02:00
johndoe123 bfd71cff6e NEVERHOOD: New modules Module1200, Module1400, Module1700 and Module1800
- Implement CollisionMan::removeSprite
2013-05-08 20:39:34 +02:00
johndoe123 a23b694c94 NEVERHOOD: Implement Scene1005
- Add FontSurface
- Add DataResource
- Fix NavigationScene, only accept input when interactive
2013-05-08 20:38:48 +02:00
johndoe123 8a5c4a84d0 NEVERHOOD: Implement color replace in AnimatedSprite
(used to disable a color in sprite drawing)
2013-05-08 20:38:47 +02:00
johndoe123 9f6e6c6f7f NEVERHOOD: Implement MouseCursorResource and Mouse433 mouse cursor 2013-05-08 20:38:47 +02:00
johndoe123 e6236a3978 NEVERHOOD: Add transparency and x flipping to sprite drawing (flip y still TODO but rarely used)
- Add Class511 (the lever) to Module1000
2013-05-08 20:30:58 +02:00
johndoe123 97f319c945 NEVERHOOD: More work on Scene1001, implement Class509 (yes, will be renamed later) and AnimResource related stuff 2013-05-08 20:30:58 +02:00
johndoe123 056b69f0c8 NEVERHOOD: Module1000 and Scene1001 skeletons
- Implement BaseSurface::drawSpriteResourceEx
- Use CollisionMan in Scene
- Some cleanup
2013-05-08 20:30:58 +02:00
johndoe123 bd1749863e NEVERHOOD: Start with the Palette2 class (which needs a better name later)
- Implement Screen::drawSurface2 (needs color key support)
- The first intro now show up, complete with fade-in and fade-out
2013-05-08 20:30:58 +02:00
johndoe123 1285b37b32 NEVERHOOD: Start with the Background and DirtyBackground classes
- Also make related changes in other code
- Call the game module's draw method in the main loop
- Add some more debug output in resource load functions
2013-05-08 20:30:58 +02:00
johndoe123 aded2a104b NEVERHOOD: Start with Scene and Sprite classes 2013-05-08 20:30:57 +02:00
johndoe123 108368e9b5 NEVERHOOD: Add more
- SpriteResource and PaletteResource resource classes
- Extend BaseSurface to be able to draw SpriteResources onto it
- Implement Entity base class (this may need some work concerning the update/message callbacks later since I'm not sure if the way it's done now is portable)
2013-05-08 20:30:57 +02:00
johndoe123 a262055df2 NEVERHOOD: Start with the BaseSurface class (doesn't do much yet) 2013-05-08 20:30:57 +02:00
johndoe123 7d5d5f139f NEVERHOOD: Start with graphics code (bitmap parsing and rle decompression) 2013-05-08 20:30:57 +02:00