691 Commits

Author SHA1 Message Date
Max Horn
6c98169dc3 GUI: Shorten button labels if too long, and improve the shortening logic
svn-id: r46381
2009-12-15 08:19:59 +00:00
Johannes Schickel
6b44a09a52 Hopefully fixing linking on MSVC:
svn-id: r46329
2009-12-10 21:40:38 +00:00
Johannes Schickel
dce1d4aa4b Properly clean up memory when destroying CursorManager.
svn-id: r46325
2009-12-09 23:05:15 +00:00
Johannes Schickel
7605a35fd7 Cleanup: Move constructor/destructor definition of CursorManager::Cursor and CursorManager::Palette to cursorman.cpp.
svn-id: r46324
2009-12-09 23:04:54 +00:00
Johannes Schickel
414e6ffef3 Some more slight cleanup.
svn-id: r46314
2009-12-09 17:09:18 +00:00
Johannes Schickel
0d43cc61d2 Cleanup: remove "s_initialized" from CursorManager and FontManager implementation, these classes are Singletons, so they will ever only be initialized once at most anyway.
svn-id: r46313
2009-12-09 17:05:23 +00:00
Max Horn
626f85ae5e Move findCompatibleFormat from graphics/pixelformat.h to engines/engine.cpp
This function is used in only one place. Declaring it requires common/list.h;
by putting it into pixelformat.h, which is included by common/system.h, tons
of things suddenly included list.h for no good reason.

If we ever need to call this function in other places, we can figure out aborts
more appropriate place for it.

svn-id: r46310
2009-12-09 16:45:35 +00:00
Max Horn
fb5e747565 GRAPHICS: Change font code to be identical on all platforms
svn-id: r46309
2009-12-09 16:44:48 +00:00
Johannes Schickel
421363a132 Slightly modified commit of patch #2911414 "MSVC: conversions warnings in common code".
svn-id: r46308
2009-12-09 16:41:08 +00:00
Sven Hesse
4a189842bb Adding support for mono signed 16bit little-endian uncompressed PCM audio (thank you, clone :))
svn-id: r46270
2009-12-06 04:38:20 +00:00
Sven Hesse
c7305331ee Only print sound information if there actually is sound (preventing a division by 0 exception)
svn-id: r46210
2009-11-30 02:00:42 +00:00
Sven Hesse
8ede0caf72 Properly clear the chunk headers again on closing
svn-id: r46209
2009-11-30 01:58:15 +00:00
Sven Hesse
68b99f1c95 Adding a parameter to the AviDecoder constructor to allow changing the SoundType (instead of it being fixed to Plain)
svn-id: r46170
2009-11-28 00:38:18 +00:00
Sven Hesse
07d8f1c89b Fixing a valgrind warning by memsetting _palette
svn-id: r46169
2009-11-28 00:32:16 +00:00
Sven Hesse
447711b597 Fixing an invalid read in the destructor
svn-id: r46164
2009-11-27 20:28:37 +00:00
Sven Hesse
c8b8ab679f 00AM is another compressed frame type, fixing this (thanks to digitall for figuring that out :D)
svn-id: r46163
2009-11-27 19:26:20 +00:00
Sven Hesse
cb2cc67b41 Extended the AviDecoder a bit
svn-id: r46162
2009-11-27 18:25:40 +00:00
Filippos Karapetis
9a39135758 Typo
svn-id: r46135
2009-11-25 08:07:20 +00:00
Max Horn
0d9609f7f9 Fix incorrectly placed doxygen comments; replace Common::ID2string by Common::tag2string
svn-id: r46127
2009-11-24 22:08:34 +00:00
Johannes Schickel
746f391b8a Cleanup.
svn-id: r45993
2009-11-19 22:22:08 +00:00
Max Horn
974b49ebfe Put two of the WinCE downscalers into graphics/scaler/downscaler*, so that they can be used by multiple backends (more could be added as needed)
svn-id: r45974
2009-11-18 15:19:44 +00:00
Johannes Schickel
22e94ddd61 Add missing ")" in #if check.
svn-id: r45834
2009-11-11 14:28:07 +00:00
Max Horn
c3905f60ee Move definition of stdint types to the only file that needs them (mpeg_player.h)
svn-id: r45820
2009-11-10 22:18:41 +00:00
Max Horn
2bbf708dea Introduced new type Common::DisposeAfterUse::Flag
svn-id: r45233
2009-10-18 19:41:59 +00:00
Matthew Hoops
620fa7c641 Override getAudioLag() in the AviDecoder (blatantly borrowed from the SmackerDecoder).
svn-id: r45172
2009-10-16 18:32:20 +00:00
Matthew Hoops
b43e99566e Converting AVIPlayer into a class that inherits from VideoDecoder and adapt SCI to use this. Also, moving the codec and Codec class into their own folder. (Based on a patch by md5)
svn-id: r45170
2009-10-16 18:05:56 +00:00
Filippos Karapetis
422b732dba Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
svn-id: r45151
2009-10-16 07:42:23 +00:00
Arnaud Boutonné
c93c9cb68d gob: fix a regression in Bargon Attack intro caused by a fix of Ween problems. Still requires a more proper fix, but at least it doesn't hang anymore (closing bug #2878717)
svn-id: r45080
2009-10-14 14:06:53 +00:00
Johannes Schickel
67c6e92efb Add support for 8x16 chars in the FM-Towns font ROM code.
svn-id: r44910
2009-10-11 12:00:56 +00:00
Johannes Schickel
6492c00a3a Revert changes to graphics/sjis.h in r44709.
svn-id: r44904
2009-10-11 11:28:43 +00:00
Max Horn
2e964baeef Some const correctness changes; cleanup
svn-id: r44850
2009-10-09 21:47:33 +00:00
Max Horn
3399c3aeb6 Change doxygen inline comments from "//!" to "///" as proposed on -devel
svn-id: r44802
2009-10-08 21:28:57 +00:00
Florian Kagerer
45fda46cf3 KYRA/LOL: - get rid of ascii/sjis detection which could cause problems when typing savegame names
- fixed some minor bugs

svn-id: r44709
2009-10-06 17:22:40 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Max Horn
5884ac58c6 Whitespace changes
svn-id: r44546
2009-10-02 20:21:07 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Johannes Schickel
03a26923c9 Implemented support for drawing 8x16 chars from our custom SJIS font.
svn-id: r44486
2009-09-30 14:53:07 +00:00
Johannes Schickel
1b94303b78 Update SJIS code to read SJIS.FNT version 2 data (no support for drawing ASCII and half-width katakana glyphs yet).
svn-id: r44483
2009-09-30 13:07:12 +00:00
Andre Heider
fa3e257aa2 Removed the svn:executable property on non-executables
svn-id: r44444
2009-09-28 09:16:53 +00:00
Max Horn
07092bfccb Removed dead code
svn-id: r44335
2009-09-25 09:10:59 +00:00
Max Horn
f73c556146 Fix what looks like a typo bug in the AVI player
svn-id: r44016
2009-09-08 22:03:28 +00:00
Max Horn
37e51f1575 Fixed some (pedantic) warnings
svn-id: r44015
2009-09-08 22:03:07 +00:00
Sven Hesse
21163f5ae1 Add some more drawing constraints, so prevent overflowing the video memory
svn-id: r43902
2009-09-01 21:53:00 +00:00
Max Horn
11a16fa30e Coding best practice: Whenever possible, pass objects by reference instead of by value. Also make variables or data table which are only used locally "static".
svn-id: r43882
2009-09-01 13:03:12 +00:00
Matthew Hoops
0cd8599082 Rename the WAVE_* constants to AVI_WAVE_* to fix compile on WinCE.
svn-id: r43839
2009-08-30 21:04:20 +00:00
Filippos Karapetis
32ff93bdc7 Named some unnamed enums. Hopefully, this will fix compilation under WinCE.
svn-id: r43836
2009-08-30 20:41:17 +00:00
Matthew Hoops
d8e93836c5 Add an AVI player and MSVideo1 codec for use with some SCI Windows game (such as kq6).
svn-id: r43833
2009-08-30 19:47:14 +00:00
Andre Heider
78cbed0cc8 Added the ColorMask ARGB3444 for Gamecube/Wii
svn-id: r43828
2009-08-30 16:57:21 +00:00
Eugene Sandulenko
5f8fafcc13 Patch #2836424: "Optional compilation of CoktelVideo and Indeo3"
svn-id: r43807
2009-08-29 19:48:01 +00:00
Johannes Schickel
84c1fc6399 Fix bug for non 8bpp indexed game screens in grabScreen565.
svn-id: r43796
2009-08-29 08:02:40 +00:00