Commit graph

657 commits

Author SHA1 Message Date
Filippos Karapetis
166f3f2dfd SCI2+: Set pictureCels to 0 after deleting them
svn-id: r55004
2010-12-22 13:52:25 +00:00
Filippos Karapetis
75649f8903 SCI: Reset the portrait bitmap to the "closed mouth" state, when skipping dialogs
in the Windows version of KQ6

svn-id: r54983
2010-12-21 07:53:34 +00:00
Filippos Karapetis
26dfb6affa SCI: Fixed bug #3041153 - "SCI Fanmade Games: Message window glitch"
The left window dimension adjustment (rev #48772) has been moved from
GfxPorts::setOrigin() into GfxPorts::addWindow(), as the updated dimension is
later used when filling the contents of the window (apparent in some fan made
games)

svn-id: r54976
2010-12-20 15:30:31 +00:00
Filippos Karapetis
4b836d611f SCI: Fixed bug #3037945 - "PQ3 : Graphical Glitch with White Mercedes on Freeway"
svn-id: r54975
2010-12-20 12:21:18 +00:00
Filippos Karapetis
d3340b0d0c SCI: Commented out unused signal flags
svn-id: r54974
2010-12-20 12:19:28 +00:00
David Turner
58b7295193 SCI: Fixed View Cel RLE Decoding when RLE Code 0x40 is used (Corrects Bug #3135872 "LSL1VGA: "Pause Game" problem")
In the copy case, the runLength can be up to 127, not 64 i.e. the LSB of the RLE code forms part of the runLength.

svn-id: r54924
2010-12-15 22:36:55 +00:00
Matthew Hoops
c2ec6020e3 SCI: Fix uninitialized reads (and therefore, GK1)
svn-id: r54799
2010-12-06 19:37:19 +00:00
Filippos Karapetis
94801fcea3 SCI: Fixed bugs #3041044, #3046543 and #3046513
svn-id: r54690
2010-12-01 00:40:52 +00:00
Filippos Karapetis
d3b14e1445 SCI: Implemented FR #3101338: "King's Quest 6 Windows Mouse Icons"
Added an option to use the original Windows cursors in the Windows version of KQ6
Also, added an update on how the Mac cursors are handled (perhaps the handling is
the same)

svn-id: r54495
2010-11-26 12:37:24 +00:00
Filippos Karapetis
c8ef70ea1c SCI: Some minor fixes for Phantasmagoria 2 (which doesn't work at all, since it has some differences in its views)
svn-id: r54390
2010-11-20 00:20:05 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
5a554e3dbe SCI: Change 'colour' to 'color'
All other instances already were spelled 'color' in the SCI
engine (and also most other parts of ScummVM)

svn-id: r54285
2010-11-17 12:13:03 +00:00
Filippos Karapetis
8b14137c07 SCI: Some video related changes
- Now playVideo() is used when playing videos from the console (reducing
code duplication)
- Added support for 16bpp scaling in scale2x, so that the 16-bit color
Duck videos are scaled correctly

svn-id: r54210
2010-11-11 19:22:56 +00:00
Filippos Karapetis
8504e30dac SCI2: Added some currently unused code for drawing text on a buffer
svn-id: r54143
2010-11-08 16:12:58 +00:00
Willem Jan Palenstijn
e065a8a797 SCI: Fix blend rounding, style
svn-id: r54093
2010-11-05 12:33:07 +00:00
Johannes Schickel
8c997e2608 SCI: Add a default case to a switch statement to silence some compiler warnings.
svn-id: r54078
2010-11-05 00:10:26 +00:00
Willem Jan Palenstijn
51f7c4c525 SCI: Fix precedence error in comment
svn-id: r54071
2010-11-04 19:45:38 +00:00
Willem Jan Palenstijn
7e6aa1b4a9 SCI: Use gamma 2.2 for blending undithered colours
svn-id: r54069
2010-11-04 19:17:44 +00:00
Martin Kiewitz
bb716c23fa SCI: adding force to memorial area for SQ3/intro
makes the view getting fully undithered

svn-id: r54068
2010-11-04 18:37:03 +00:00
Max Horn
ba3e826872 SCI: Remove any use of printf
svn-id: r54037
2010-11-02 09:49:47 +00:00
Filippos Karapetis
3d431a215f SCI: Fixed a silly bug when restoring port rectangles. This uncovered a bug with the recently added port save/restore code
svn-id: r54015
2010-11-01 19:42:00 +00:00
Martin Kiewitz
548e67f413 SCI: fixing lf
(stupid msvc)

svn-id: r54014
2010-11-01 16:42:54 +00:00
Martin Kiewitz
eefa151d70 SCI: saving/restoring script created windows now
fixes "GfxPorts::kernelSetActive" error
based on code by [md5]

svn-id: r54012
2010-11-01 16:09:33 +00:00
Filippos Karapetis
dca3c8d8bf SCI: Play time related changes
- Added support for savegame play time
- Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime)
- Renamed some variables to camelCase

svn-id: r53974
2010-10-31 01:45:24 +00:00
Martin Kiewitz
bd7d9965e9 SCI: removing unneeded call
was a left-over from debugging

svn-id: r53857
2010-10-26 20:56:55 +00:00
Martin Kiewitz
d078a4d235 SCI: fix gfx issues when giving out cards hoyle4
bit 2 actually triggers special drawing of cels in sierra sci

svn-id: r53855
2010-10-26 20:19:17 +00:00
Martin Kiewitz
9af803f575 SCI: kAnimate bit 2 is hoyle 4 exclusive
adjusted comments about that and also renamed the bit, also added additional TODO, because hoyle 4 has special code that gets into action, when bit 0 is not set, but bit 2 is

svn-id: r53853
2010-10-26 16:21:00 +00:00
Martin Kiewitz
a877ba0026 SCI: little cleanup kAnimate
svn-id: r53852
2010-10-26 15:29:04 +00:00
Martin Kiewitz
f9cb635b58 SCI: fixing bug #3091767 by reverting r52820
interpreters should get checked for that hoyle 4 code, comment added

svn-id: r53851
2010-10-26 14:42:24 +00:00
Martin Kiewitz
adcab043a2 SCI: fix comment in kAddToPic
svn-id: r53828
2010-10-25 16:33:04 +00:00
Martin Kiewitz
b581a866a9 SCI: fixing obvious kAddToPic regression
caused by r53068, triggered bug #3092840 (SQ5 genetix lab scaled incorrectly when laying course) - thx to digitall for bisect

svn-id: r53775
2010-10-24 21:49:22 +00:00
Filippos Karapetis
6c47ca8253 SCI2/SCI2.1: Some changes to the screen drawing code.
- Implemented kernelUpdateScreenITem
- Changed the list of screen items to be a list of FrameoutEntry entries,
so that it doesn't get recreated on every frame

svn-id: r53744
2010-10-23 19:23:07 +00:00
Max Horn
3534cff8ef ALL: Fix indention (whitespaces -> tabs)
svn-id: r53738
2010-10-23 15:46:50 +00:00
Martin Kiewitz
ffbca0786d SCI: fixing iceman undithering door close-up
room 9 (go up right at the start)

svn-id: r53522
2010-10-15 22:19:27 +00:00
Martin Kiewitz
9cc51096c0 SCI: updating comment for r53515
svn-id: r53517
2010-10-15 21:16:36 +00:00
Martin Kiewitz
41e9691e86 SCI: fixing view-undithering for laura bow 1
(cupboards in room 43, just in the room to the left from the start)

svn-id: r53515
2010-10-15 21:12:42 +00:00
Filippos Karapetis
7cdddd5ffb SCI: Fixed code bugs from bug #3087872 - "SCI: Code analysis warnings"
svn-id: r53482
2010-10-15 12:40:24 +00:00
Matthew Hoops
07abe3d603 SCI: Add detection for Hoyle4 Mac
svn-id: r53397
2010-10-13 03:28:59 +00:00
Max Horn
7642cd002a SCI: Fix warning about uninitialized variable
svn-id: r53140
2010-10-10 22:25:30 +00:00
Filippos Karapetis
744a1829ac SCI: Added a check for magnifier cursor multipliers
Sierra SCI only allowed multipliers 1, 2 and 4, and errored out on unexpected
values, thus we do the same

svn-id: r53072
2010-10-08 13:33:54 +00:00
Martin Kiewitz
6dcf366b7d SCI: fixing mag cursor as far as possible
added TODO for real proper implementation
at least the alignment and content shown is now correct

svn-id: r53071
2010-10-08 12:41:03 +00:00
Martin Kiewitz
6798b01569 SCI: add global scaling again to kAddToPic
fixes regression of r52887 - lb2 actors not scaled correctly bug #3083577

needs to get backported

svn-id: r53068
2010-10-08 10:35:25 +00:00
Filippos Karapetis
cacfefa699 SCI: bugfix for magnifier cursors
When deleting the resources related to magnifier cursors, zero them out
as well. Fixes crash when exiting a game after using a magnifier cursor

svn-id: r53054
2010-10-07 20:00:32 +00:00
Filippos Karapetis
8fcd25bcce SCI: Added a define to disable room transitions
This is only useful for development, for speedy runs of games, and should NOT be
used in general, as it may introduce graphics glitches

svn-id: r53049
2010-10-07 15:30:30 +00:00
Martin Kiewitz
5ba3475f93 SCI: fixing kBaseSetter on scaled views
adding check, if view is scaleable
also just copying nsRect now instead of recalculating - fixes lb2 regression at the docks (calling taxi hangs the game, bug #3982289) - i noticed this difference before but copying nsRect didnt work back then (i guess because of other bugs), that's why i recalculated it

should get backported, but only after some more testing - maybe someone should play through lb2 again

svn-id: r53045
2010-10-07 11:25:09 +00:00
Filippos Karapetis
c8fd37c9f0 SCI: Some fixes for zoom cursors
- Now the cursor buffer is initialized outside the mouse movement code, thus saving
a memcpy there
- Plugged some memory leaks
- Removed an obsolete check

svn-id: r53028
2010-10-05 10:30:26 +00:00
Martin Kiewitz
04a8ff06a2 SCI: fixing crash in mag cursor code for pharkas
svn-id: r53014
2010-10-04 09:23:06 +00:00
Filippos Karapetis
165432ad19 SCI: Several corrections for magnifier cursors
svn-id: r53010
2010-10-04 06:05:34 +00:00
Willem Jan Palenstijn
d1fb1d5b26 SCI: Fix AltInput crash in non-parser games
svn-id: r53008
2010-10-03 23:56:17 +00:00
Filippos Karapetis
27745c2143 SCI: Added missing initialization of _zoomBitmap
svn-id: r53007
2010-10-03 23:55:28 +00:00