Commit Graph

196 Commits

Author SHA1 Message Date
D G Turner
b35bda1715 TOLTECS: Remove unused, but set, variable, start. 2012-11-19 23:27:07 +00:00
Torbjörn Andersson
49e96aa188 TOLTECS: Improve the shake screen effects during movies
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-10-06 00:01:47 +02:00
Filippos Karapetis
be918da348 TOLTECS: Hide the mouse cursor while a movie is playing, like the original
Thanks to eriktorbjorn for noticing this
2012-10-06 00:24:34 +03:00
Filippos Karapetis
e47425aaf5 TOLTECS: Wait a bit after drawing each frame
This reduces the CPU load considerably (it's around 10% now, down from 50%)
2012-10-06 00:13:50 +03:00
Filippos Karapetis
650df5a16c TOLTECS: Remove redundant screen updates 2012-10-06 00:12:53 +03:00
Torbjörn Andersson
8335e340fd TOLTECS: Fix menu positining in the simplest way I can think of
All this does is to offset the image when copying it to the screen,
and offset the position when checking for clickable items at specific
coordinates. It looks and works right to me. I guess that just leaves
the buildColorTransTable2() function, but I'm useless for that so
someone else will have to look into it.
2012-10-03 22:21:52 +02:00
Torbjörn Andersson
b50f5a4cde TOLTECS: Improve audio/video sync in the movie player
At least on my computer, the sound would stall frequently after a
while because the delay between frame was calculated from frame to
frame. Now it's calculated from the start of the sound instead.
2012-10-03 08:28:02 +02:00
Torbjörn Andersson
eea9fc637c TOLTECS: Added TODO comment about main menu position
I'm guessing that the unused _top variable is what causes the main
menu to be drawn at the wrong position at the very start of the
game. At that point, it's 30 which seems to be by how much the Y
coordinate is off.
2012-10-03 01:09:11 +02:00
Torbjörn Andersson
f758b8422c TOLTECS: Draw shaded rects to "front screen", not "background"
The shadeRect() function is called just once (at the time of writing)
and immediately afterwards the "front screen" is copied to the
"background". Therefore, drawing to the background doesn't seem to
make any sense.

The colors are wrong, but I assume that's for the same reason that the
text colors are wrong as well.
2012-10-02 22:12:56 +02:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
fad5041a32 TOLTECS: Replace ceil with integer maths.
This removes an unnecessary use of floating point maths.
2012-09-21 03:01:39 +02:00
Filippos Karapetis
3919c51e86 TOLTECS: Adapt the movie chunk buffer allocation code
Thanks to wjp and LordHoto for their feedback
2012-09-14 11:40:27 +03:00
Filippos Karapetis
748e3894a3 TOLTECS: Don't show movie subtitles when subtitles are disabled 2012-09-11 00:50:52 +03:00
Filippos Karapetis
5ea896b069 TOLTECS: Stop reallocating the chunk buffer on each movie frame
This somewhat reduces the stuttering in the intro movie (but it's still there)
2012-09-11 00:34:31 +03:00
Filippos Karapetis
de75d25725 TOLTECS: Remove a superfluous seek 2012-09-11 00:34:30 +03:00
Filippos Karapetis
455ad8a5bc TOLTECS: Read the sound rate for each video file 2012-09-11 00:34:29 +03:00
Filippos Karapetis
c0a1d78e0e TOLTECS: Store channel volume/panning information in saved games 2012-09-11 00:34:28 +03:00
Filippos Karapetis
a9a579891e TOLTECS: Open the save menu with F5 and the load menu with F9
Also, this changes the dialog skip key to space instead of escape
2012-09-11 00:34:27 +03:00
Filippos Karapetis
72cdd019fc TOLTECS: Implement volume handling and toggling of speech/text 2012-09-11 00:34:23 +03:00
Johannes Schickel
69723c82bc TOLTECTS: Slight cleanup in querySaveMetaInfos. 2012-07-03 18:39:50 +02:00
Johannes Schickel
99229fc7ab TOLTECS: Get rid of casts on CursorManager::replaceCursor calls. 2012-06-16 03:28:43 +02:00
Johannes Schickel
72f1fb0bed TOLTECS: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:39:00 +02:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
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)
2012-02-15 10:07:10 -06:00
Tarek Soliman
921f602ab8 JANITORIAL: Fix whitespace in pointer template arg 2012-02-15 10:07:08 -06:00
Torbjörn Andersson
54041675e5 TOLTECS: Some formatting fixes. 2012-01-29 21:41:16 +01:00
Filippos Karapetis
9b12c8c25c TOLTECS: Removed two goto statements 2011-12-05 02:31:56 +02:00
Filippos Karapetis
09349c2bca TOLTECS: Don't call c_str() on the return value of Common::String::format() 2011-11-26 22:37:44 +02:00
Filippos Karapetis
31cf9b7610 TOLTECS: Reduce code duplication 2011-11-26 22:28:39 +02:00
D G Turner
d5c50fe0b3 TOLTECS: Add detection for Hungarian variant from bug #3440641. 2011-11-25 13:50:48 +00:00
Joost Peters
8b9b777397 TOLTECS: findPath() endian fixes. 2011-11-24 23:28:12 +01:00
Joost Peters
672e981b17 TOLTECS: Fix crash on Big Endian 2011-11-24 22:18:05 +01:00
Filippos Karapetis
0b4a022018 TOLTECS: Save music in saved games
Also, move all music resource related code into its own class
2011-11-24 00:03:01 +02:00
Filippos Karapetis
18fd59939f TOLTECS: Sync scene sounds when saving/loading 2011-11-21 23:47:47 +02:00
Filippos Karapetis
e2bc38ea91 TOLTECS: Change deltaValue to be an int8, as char isn't always signed 2011-11-21 23:08:10 +02:00
Filippos Karapetis
1eeb852902 TOLTECS: Remove empty implementation of syncSoundSettings() 2011-11-21 23:04:48 +02:00
Filippos Karapetis
41ba66b59c TOLTECS: Cleanup, removed an obsolete TODO 2011-11-21 22:46:33 +02:00
Filippos Karapetis
7c5f55912c TOLTECS: Add missing namespace comment 2011-11-21 22:32:03 +02:00
Filippos Karapetis
8880c7c94c TOLTECS: Savegame changes
- Add support for savegame removal
- Remove kyra-specific code
- Add save play time and creation date
2011-11-21 22:29:44 +02:00
D G Turner
5a868a4008 TOLTECS: Removed TODO.txt. Contents now on Wiki Toltecs Engine Page. 2011-11-21 04:03:32 +00:00
Torbjörn Andersson
9f5f240e90 TOLTECS: Change the updateScreen() logic a bit
Updating the screen when getMillis() % 10 is 0 seems sub-optimal
to me. It could be true several iterations in a row (shouldn't be
harmful, since updateScreen is assumed to be cheap if the screen
hasn't changed) or we could miss it every single time. Let's
measure the time between updates instead, just to be safer.
2011-11-20 23:45:29 +01:00
Alex Bevilacqua
b592d73e62 TOLTECS: silence a couple gcc warnings 2011-11-20 22:43:12 +01:00
Filippos Karapetis
579c47b717 TOLTECS: Removed duplicate assignment 2011-11-20 22:43:12 +01:00
Filippos Karapetis
e4d5320e7f TOLTECS: Fixed typo in logic 2011-11-20 22:43:12 +01:00
Filippos Karapetis
8b503f558e TOLTECS: Fixed compilation after the latest changes to GUI options 2011-11-20 22:43:12 +01:00
Filippos Karapetis
c119cbda90 TOLTECS: Slight cleanup of the audio code 2011-11-20 22:43:12 +01:00
Filippos Karapetis
94f5b8b190 TOLTECS: Always hide the game interface when showing a movie 2011-11-20 22:43:12 +01:00
Filippos Karapetis
8b4c082f6d TOLTECS: Stop all sounds when exiting 2011-11-20 22:43:12 +01:00
Filippos Karapetis
a8112121b2 TOLTECS: Cleanup 2011-11-20 22:43:12 +01:00
Filippos Karapetis
f3fdcad214 TOLTECS: Updated TODO 2011-11-20 22:43:12 +01:00
Filippos Karapetis
fee561c039 TOLTECS: Updated TODO 2011-11-20 22:43:12 +01:00