aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula/interface.cpp
AgeCommit message (Collapse)Author
2017-11-15Revert "DRASCULA: Revert range 4dbed774..1f1d8607"Filippos Karapetis
This reverts commit bf69b25e33189581848412e77624865aa55ba234. The original game had slight differences between the code for each chapter. Part of these changes was to simplify the code and unify some of these differences, particularly in the checks for clickable areas, where the code is using Common::Rects with contains() now. I have play tested the whole game with these changes, there are no visible regressions, and the game is still completable. Thus, I'm restoring the changes to the engine.
2017-11-14DRASCULA: Revert range 4dbed774..1f1d8607Willem Jan Palenstijn
This reverts 1f1d8607 DRASCULA: Merge the floor coordinates into _walkRect 1e1b6f7c DRASCULA: Rename gotoObject() to walkToPoint() and simplify it 2bf05c2a DRASCULA: Clean up room variables, and simplify some related checks Reverting due to unanswered questions about why the changes in behaviour in 2bf05c2a746065f373ac136c994714dae376cdbc are correct.
2017-11-11DRASCULA: Clean up room variables, and simplify some related checksFilippos Karapetis
2016-04-16DRASCULA: Swap extraSurface and tableSurface use in chapter 6 for Spanish ↵Thierry Crozat
version This simplifies the code and bring it closer to the original source code. This should help if we need to debug issues in the future.
2016-04-12DRASCULA: Fix wrong background for inventory in chapter 6Thierry Crozat
This was a regression from commit fa3d3e3 and this fixes part of bug #7113 DRASCULA: Serious sprite glitches. The original uses extraSurface to draw text in draw_abc() in the Spanish version while other languages use tableSurface. But in ScummVM this was changed to use tableSurface for all languages. However this caused an issue in chapter 6 when displaying the inventory has it is also using tableSurface, as it was for all languages in the original. While using the same surface works for other languages, in the Spanish version we get the wrong background in the inventory. Rather than revert to using extraSurface for drawing text which is a big change and impact all the chapters, I have opted to simply swap the usage of the tableSurface and extraSurface in chapter 6 for the Spanish version compared to the original engine. The changes therefore only impact chapter 6 and only the Spanish version. I played the chapter in full to check that it indeed works without causing adverse effects.
2014-02-18DRASCULA: Make GPL headers consistent in themselves.Johannes Schickel
2013-08-19DRASCULA: Some renaming. Also, get rid of some extraneous globalsFilippos Karapetis
This removes the superfluous talkHeight, talkWidth and timeDiff variables. It also changes _loadedDifferentChapter to be a boolean
2013-05-14DRASCULA: Remove superfluous strcpy()Filippos Karapetis
2013-01-06DRASCULA: Fix shadowing warnings (thanks LordHoto), and rename some variablesFilippos Karapetis
2013-01-04DRASCULA: Add advanced savegame functionalityFilippos Karapetis
This cleans up the save/load code and resolves multiple issues with the original save/load screen. Save game timestamps and thumbnails are now implemented, together with the ability to load a game from the launcher. F7 is now mapped to the ScummVM load dialog, and F10 to the save dialog (if the user has selected to use the ScummVM save screen).
2012-06-16DRASCULA: Get rid of casts on CursorManager::replaceCursor calls.Johannes Schickel
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.
2011-11-13DRASCULA: Improve confirm quit screen.Johannes Schickel
Now the confirm quit screen still updates the room and allows mouse movement. For me that removes the feeling that ScummVM locked up when I pressed escape.
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-01-31DRASCULA: Fixed a warningFilippos Karapetis
svn-id: r55685
2011-01-28DRASCULA: Fixed Code to allow Quit/RTL Function and avoid Memory Leakage.David Turner
A memory leakage was traced down to a failure to call the engine destructor. This was due to the engine directly calling OSystem quit() i.e. _system->quit(), rather than just allowing engine::run() to return. Have removed this code and implemented the changes required to allow graceful Quit/RTL to occur. svn-id: r55583
2010-09-21DRASCULA: Fix invalid memory access on inventory screenTorbjörn Andersson
When clicking outside of all inventory objects, the whichObject() function would return 43, which is an invalid inventoryObjects[] index. I think that's what caused it to crash for me. There are a few other inventoryObjects[]-related changes as well. svn-id: r52843
2010-06-15Drascula: Move more cursor-related blits to cursorSurface.Eugene Sandulenko
svn-id: r49715
2010-06-15Drascula: Fixed bug #2826608.Eugene Sandulenko
Bug #2826608: "DRASCULA: Cursor GFX error" fixed by introducing separate buffer for cursors. This also fixes the root cause of the problem. svn-id: r49713
2010-06-15Drascula: added more debug outputEugene Sandulenko
svn-id: r49706
2010-01-07The default keycolor for mouse pointers used to be 255.Marcus Comstedt
This makes sense as a default for CLUT8 modes, but not really for anything else. As part of the gsoc2009-16bit merge, the default was changed to "all ones", with extra code in the SDL backend to truncate this to the depth of the mode. However, "all ones" (white) still isn't a very useful default for RGB modes. So rather than jumping through hoops to provide a bad default, it's better to remove the default altogether. Engines which relied on the old default of 255 have been updated to specify it explicitly. svn-id: r47118
2009-05-13Normalized types for several variables. FormattingEugene Sandulenko
svn-id: r40521
2009-05-12Replace verb numbers with constants in selectVerb() callEugene Sandulenko
svn-id: r40476
2008-12-03Removed unused variable.Torbjörn Andersson
svn-id: r35223
2008-12-03Applied wjpalenstijn's patch to fix bug #2111826 - "DRASCULA: Inserting save ↵Filippos Karapetis
game names lags" svn-id: r35221
2008-09-16- Moved some includes away from drascula.hFilippos Karapetis
- Moved grr() to talk.cpp - Removed the unnecessary parameter length from isTalkFinished() svn-id: r34577
2008-09-13Indentation.Torbjörn Andersson
svn-id: r34513
2008-09-11- Merged openDoor() and closeDoor()Filippos Karapetis
- Cleaned up updateDoor() - Bugfixes to exitRoom() and gotoObject() - Moved cursor-related functions to interface.cpp - alapuertakeva -> roomExits svn-id: r34493
2008-09-11- The game's cursor is now handled via ScummVM's cursor manager, instead of ↵Filippos Karapetis
the game itself (this means that there might be regressions where the cursor is visible when it shouldn't be) - Removed the textSurface pointer, which was used in the Spanish version. Non-Spanish versions of the game hold the font data in the tableSurface buffer (which contains picture 96). The font data for Spanish versions is in picture 974. Now both versions load their font data from the tableSurface buffer - hay_que_load -> loadedDifferentChapter - Merged withoutVerb() and selectVerb() This is a big change, it might lead to regressions! svn-id: r34488
2008-09-10Reduced game memory usage by about 400KB by only loading the current ↵Filippos Karapetis
language strings, not all strings svn-id: r34472
2008-08-03Fix bug #2017432: "DRASCULA: Typing is slow when you save a game"Eugene Sandulenko
svn-id: r33574
2008-08-02Fix bug #2007170: "DRASCULA: No Spaces in SaveGames Names"Eugene Sandulenko
svn-id: r33541
2008-06-10verbo -> verbFilippos Karapetis
svn-id: r32645
2008-06-10drawSurface1 -> bgSurfaceFilippos Karapetis
svn-id: r32644
2008-06-09- drascula.dat is now read completelyFilippos Karapetis
- Removed the rest of the game static data (staticdata.h) - Some naming convention fixes (added underscore to some shared variables) - Renamed objeto -> object svn-id: r32628
2008-06-07Shuffled around more code. Now the files look more manageable.Eugene Sandulenko
svn-id: r32599