aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/screen.cpp
AgeCommit message (Collapse)Author
2014-02-18TOLTECS: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-24TOLTECS: Fix spacing errorsStrangerke
2013-08-03TOLTECS: Take advantage of Surface::getPixels.Johannes Schickel
2013-04-26TOLTECS: Remove dead codeFilippos Karapetis
The clearSprites() method is a leftover from the older sprite drawing code
2013-03-15TOLTECS: Work around undefined subtitle behaviour at script loadingTorbjörn Andersson
It may be because of an underlying bug, but there is at least one case where a script is unloaded and replaced by another script while that script slot still has an active subtitle. This causes it to print random garbage for me, and may be causing crashes for others. I've discussed this patch with johndoe, and he was ok with it, so let's see how it works out.
2013-01-13TOLTECS: Fix bug #3600166 - "TOLTECS: Parrot speech cuts off Fenimore's in ↵Filippos Karapetis
Cemetery"
2013-01-13TOLTECS: Fix bug #3599370 - "TOLTECS: Text on intro video not shown as per ↵Filippos Karapetis
original"
2013-01-13TOLTECS: Whitespace fixesFilippos Karapetis
2013-01-04TOLTECS: Adjust verb drawing to look more like originalTorbjörn Andersson
Both the "wobble" and the positions were slightly off. I didn't want to change _verbLineY because for one thing it doesn't seem to affect the drawing of the verbs, and for another it seems to be stored in savegames because... squirrel!
2012-10-06TOLTECS: Improve the shake screen effects during moviesTorbjörn Andersson
I don't know how often the original shook the screen (perhaps as often as it could?), but at least we now have the opportunity to shake the screen more than once per movie frame.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-11TOLTECS: Implement volume handling and toggling of speech/textFilippos Karapetis
2012-06-16TOLTECS: Get rid of casts on CursorManager::replaceCursor calls.Johannes Schickel
2012-02-15JANITORIAL: Fix missing whitespace in pointer castTarek Soliman
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g' This seems to have caught some params as well which is not undesirable IMO. It also caught some strings containing this which is undesirable so I excluded them manually. (engines/sci/engine/kernel_tables.h)
2011-11-24TOLTECS: Fix crash on Big EndianJoost Peters
2011-11-20TOLTECS: Fix bugsBenjamin Haisch
- Save scene parameters before playing a movie and restore them afterwards (fixes crash) - Fix text disappearing too fast - Implement script function sfGetCameraChanged - Replace nop script functions with stubs which print debug info when called - Some cleanup, remove obsolete TODOs
2011-11-20TOLTECS: Reduced header dependenciesFilippos Karapetis
2011-11-20TOLTECS: - More work on the menu system, saving and loading from there is ↵Benjamin Haisch
now possible - Add blastSprite method which draws a sprite directly to the frontScreen without the renderQueue - Add F10 scancode in sfHandleInput to open the menu
2011-11-20TOLTECS: - Work on the menu system (use strings from resources instead of ↵Benjamin Haisch
hardcoded ones) - ...and load the system strings from the resource on startup - Only redraw menu screen when required - Change parameters for some text functions from byte* to const byte* - Rename some mouse vars
2011-11-20TOLTECS: Fixed odd bug in drawChar (I subtracted 2 from the font height ↵Benjamin Haisch
before, though I don't recall why exactly I did that; now I use the font height as-is)
2011-11-20TOLTECS: Fix compilation.Benjamin Haisch
2011-11-20TOLTECS: - Fixed clipping bugs (in 256-color sprites and scaled sprites)Benjamin Haisch
- Minor cleanup
2011-11-20TOLTECS: Reworked the ArchiveReader and ResourceCache classes.Benjamin Haisch
ResourceCache needs more work since resources are never freed (which is bad).
2011-11-20TOLTECS: Silenced MSVC warningsFilippos Karapetis
2011-11-20TOLTECS: - Implemented RTLBenjamin Haisch
- Fixed return values in savegame/loadgame - Some minor cleanup
2011-11-20TOLTECS: - Fixed Screen::updateTalkText (text x position was read ↵Benjamin Haisch
incorrectly and font color wasn't nibble-swapped) - Hooked up the movie player; movies can be aborted with Escape (not with mouse clicks at the moment because I was too lazy to implement it; funny, writing this explanation probably took longer :))
2011-11-20TOLTECS: Implemented preliminary sound playback; some stuff is still missing ↵Benjamin Haisch
(correct volumes etc.)
2011-11-20TOLTECS: A lot of changes in the graphics code:Benjamin Haisch
- Optimized drawing code; now only items (sprites, text, screen masks) which have changed from the previous frame are redrawn, this speeds up things a lot - Implemented dirty rectangles using a microtile array - The previously committed Microtile Array implementation from SEL seemed buggy so I wrote my own version which works nicely so far (and is less code and GPL), only MicroTileArray::getRectangles uses parts from the old version, this will be changed later - One known bug related to dirty rectangles remains: Sometimes the background isn't restored correctly and gfx artifacts are visible
2011-11-20TOLTECS: Moved sprite drawing code to sprite.cppBenjamin Haisch
2011-11-20TOLTECS: More changes to wrapGuiTextBenjamin Haisch
2011-11-20TOLTECS: Removed _tempString etc. and replaced it with GuiTextWrapStateBenjamin Haisch
2011-11-20TOLTECS: Renamed some functions.Benjamin Haisch
2011-11-20TOLTECS: Adjust y position of talk text lines.Benjamin Haisch
2011-11-20TOLTECS: Added Screen::getTextWidthBenjamin Haisch
2011-11-20TOLTECS: - Fixed setDeltaPalette (sprites at night now look correct)Benjamin Haisch
- Renamed TalkTextItem.rects/rectCount to lines/lineCount - Workaround for font glitch in updateTalkText (text sets invalid font number)
2011-11-20TOLTECS: Cancel all talkText items when camera position is changed (fixes ↵Benjamin Haisch
some crashes and odd behaviour)
2011-11-20TOLTECS: Merged text drawing routines into drawStringBenjamin Haisch
2011-11-20TOLTECS: Fixed text command parsing in updateVerbLineBenjamin Haisch
2011-11-20TOLTECS: Clear the text duration first in updateTalkText before adding text ↵Benjamin Haisch
lines (else the durations add up and the text stays on screen a really long time)
2011-11-20TOLTECS: Fixed clipping (the clipping of the right border with flipped ↵Benjamin Haisch
sprites was buggy)
2011-11-20TOLTECS: Finished sprite clipping.Benjamin Haisch
2011-11-20TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite ↵Benjamin Haisch
drawing.
2011-11-20TOLTECS: Merged drawChar and drawChar2Benjamin Haisch
2011-11-20TOLTECS: Saving/loading is working; it still needs work but will suffice to ↵Benjamin Haisch
make debugging somewhat easier.
2011-11-20TOLTECS: - Renamed stuff and cleanupsBenjamin Haisch
- Beginnings of the saveload system (incomplete)
2011-11-20TOLTECS: Fixed tabs and formatting.Benjamin Haisch
2011-11-20TOLTECS: Initial checkinEugene Sandulenko