Johannes Schickel
c386a5520f
SWORD1: Replace inRange with CLIP.
2011-09-08 00:19:43 +02:00
Johannes Schickel
928cb5ab11
SWORD1: Made code conform a bit better to our formatting guidelines.
...
Most is automatically converted via astyle + some manual fixes, hopefully I
did not miss anything astyle messed up...
2011-09-07 23:54:34 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
0ce2ca4e00
COMMON: Replace MKID_BE by MKTAG
...
MKID_BE relied on unspecified behavior of the C++ compiler,
and as such was always a bit unsafe. The new MKTAG macro
is slightly less elegant, but does no longer depend on the
behavior of the compiler.
Inspired by FFmpeg, which has an almost identical macro.
2011-04-12 16:53:15 +02:00
Johannes Schickel
83f66284a7
SWORD1: Adapt to setPalette RGBA->RGB change.
2011-02-15 22:16:48 +01:00
Max Horn
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
ab039812e7
COMMON: OSystem now has a PaletteManager
...
svn-id: r55806
2011-02-07 17:52:38 +00:00
David Turner
7d5dcc2a0a
SWORD1: Fix possible uninitialized memory read in Screen object.
...
This was detected during playtest with Valgrind during Act 5 (Spain).
svn-id: r55658
2011-01-30 14:41:27 +00:00
Filippos Karapetis
e74e4814e4
SWORD1: Fixed bug #3087855 - "SWORD1: Code analysis warnings"
...
svn-id: r53488
2010-10-15 13:07:31 +00:00
Torbjörn Andersson
54b2a8c98d
JANITORIAL: Cleanup (mostly whitespace)
...
svn-id: r53161
2010-10-12 04:19:58 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +00:00
Max Horn
51933629d1
Changed foo(void) to foo() in almost all non-backend source files
...
svn-id: r45616
2009-11-02 21:54:57 +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
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Johannes Schickel
c8aec4c696
SWORD1: Commit of parentheses patch from salty-horse. (from -devel "Enabling -Wparentheses in the Makefile").
...
svn-id: r39762
2009-03-30 12:11:22 +00:00
Fabio Battaglia
81cfb9ffd5
sword1: clean background buffers before writing on them in psx decoding functions
...
svn-id: r39480
2009-03-17 09:21:14 +00:00
Fabio Battaglia
f7e4f15218
sword1: cleanup
...
svn-id: r39479
2009-03-17 08:22:51 +00:00
Fabio Battaglia
a9da116ceb
sword1: optimize drawing routine for screen 54
...
svn-id: r39477
2009-03-17 08:03:29 +00:00
Fabio Battaglia
3c9b4e0f07
sword1: enable psx background caching for screen 54 (bull's head) too
...
svn-id: r39475
2009-03-17 07:46:04 +00:00
Fabio Battaglia
88ff058bd7
sword1: cache decompressed psx version backgrounds, to avoid uncompressing them at every screen update.
...
svn-id: r39462
2009-03-16 23:10:50 +00:00
Fabio Battaglia
c40d2d2f50
sword1: added caching for train.plx when playing psx version
...
svn-id: r39461
2009-03-16 22:25:37 +00:00
Max Horn
f9ecd95d69
Whitespace cleanup: Convert space followed by tab to just tab
...
svn-id: r39203
2009-03-07 19:24:31 +00:00
Fabio Battaglia
2913a561cc
Avoid using unnecessary buffers in psxShrinkedBackgroundToIndexed
...
svn-id: r39074
2009-03-02 13:46:50 +00:00
Fabio Battaglia
ed65593bb3
Avoid using unnecessary buffers in psxBackgroundToIndexed
...
svn-id: r39072
2009-03-02 11:30:23 +00:00
Fabio Battaglia
0233202150
Formatting changes in older PSX related functions
...
svn-id: r39071
2009-03-02 11:12:41 +00:00
Fabio Battaglia
08a2de9447
Changed the way Broken Sword PSX parallax are handled to improve speed
...
svn-id: r39070
2009-03-02 10:59:14 +00:00
Torbjörn Andersson
3429c17ac4
Removed some (the last?) remains of the BS1 MPEG cutscene player.
...
svn-id: r39032
2009-03-01 12:00:44 +00:00
Sven Hesse
78f28d3f30
Shutting up a compiler warning
...
svn-id: r38958
2009-02-28 10:58:46 +00:00
Eugene Sandulenko
5aa50ec889
Patch #2638336 : Broken Sword PSX Support
...
svn-id: r38956
2009-02-28 10:46:33 +00:00
Torbjörn Andersson
a57e773a0e
Removed unnecessary tests. (It's ok to free a NULL pointer.)
...
svn-id: r38344
2009-02-16 06:11:37 +00:00
Willem Jan Palenstijn
d2e8256439
defer BS1 palette update from newScreen to updateScreen, based on patch by eriktorbjorn for bug #2599963 . Maybe suitable for branch-0-13-0 after more testing.
...
svn-id: r38320
2009-02-15 22:33:18 +00:00
Johannes Schickel
5417f6bacb
- Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
...
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.
svn-id: r38304
2009-02-15 21:20:21 +00:00
Willem Jan Palenstijn
af900a2e14
clear full screen before playing movie in BS1 ( fixes #2599573 )
...
svn-id: r36334
2009-02-14 18:34:10 +00:00
Jordi Vilalta Prat
d6c34bdc4b
Fixed the spaces before tabs.
...
svn-id: r30667
2008-01-28 00:14:17 +00:00
Paul Gilbert
6eb64102a4
Fix to remove a tab character from the GPL header
...
svn-id: r30238
2008-01-05 12:45:14 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Eugene Sandulenko
cdc949439b
oops
...
svn-id: r26944
2007-05-26 16:59:13 +00:00
Eugene Sandulenko
83c713d9b4
Slighty modified patch #1701058 : "Correct some graphical glitches for
...
Brocken Sword 1 Mac"
svn-id: r26942
2007-05-26 16:17:31 +00:00
Eugene Sandulenko
3e6414a55f
Slighty modified Patch #1571787 : "Support for Mac Broken Sword 1". sword1macdemo
...
target was commented out until existence of the demo is confirmed.
svn-id: r24697
2006-11-12 19:05:51 +00:00
Torbjörn Andersson
49d1056c30
Only clear the part of the screen usually controlled by the Screen class. The
...
buffer might not be large enough to cover the menu areas, and they will
probably be clear already.
Only terminate the loop, not the entire function, when pressing Esc during a
cutscene. Otherwise, there may be palette glitches.
svn-id: r23790
2006-08-28 04:53:21 +00:00
Torbjörn Andersson
ca387f1585
Added support for DXA cutscenes. Still needs a bit of cleanup, and the DCA
...
player does not support the (unreleased) multi-lingual cutscene pack, since I
don't have one to test with.
It needs to be cleaned up a bit, but the next step will be to clean up the MPEG
decoder first.
svn-id: r23753
2006-08-26 11:34:35 +00:00
Max Horn
8cdee5a931
Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
...
svn-id: r21500
2006-03-29 15:59:37 +00:00
Max Horn
26ee630756
Moved engines to the new engines/ directory
...
svn-id: r20582
2006-02-11 22:45:04 +00:00