aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/screen.cpp
AgeCommit message (Collapse)Author
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