aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
AgeCommit message (Collapse)Author
2010-09-20SCI: Handle bit 2 of scaleSignal by not updating nsRect values whenLars Skovlund
it's set. Currently game-specific for Hoyle4; fixes bug #3038424. But other SCI1.1 games should be tested with a general version of this to see whether it fixes relevant bugs. svn-id: r52818
2010-09-19SCI2/2.1: Changes to the plane codeFilippos Karapetis
Moved some plane related functions inside updatePlane() instead of frameOut(). Cleanup. svn-id: r52804
2010-09-19SCI2: Some work on RBT filesFilippos Karapetis
svn-id: r52801
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-09SCI: adding text code reference supportMartin Kiewitz
fixes glossary in pepper, bug #3040039 svn-id: r52651
2010-09-07SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code moreFilippos Karapetis
readable svn-id: r52615
2010-09-07SCI: Slight change in GfxPicture::vectorFloodFill()Filippos Karapetis
Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier to understand svn-id: r52614
2010-09-05SCI: dont do global scaling on non-scaleable viewsMartin Kiewitz
lb2floppy: scripts get confused in the rat scene, when scaleX/Y are set with applied global scaling. This results in kInitBresen to get called almost endlessly, which results in ego slowing down to a crawl and not being able to reach the upper right exit - fixes bug #3050606 svn-id: r52559
2010-09-04SCI: delete on textedit control now checks stringMartin Kiewitz
svn-id: r52518
2010-08-31SCI: adding workaround for platform-specificMartin Kiewitz
incompatibility with some sierra games. Some games open a new menu, set mouse cursor within that menu and expect the mouse cursor to be in there and will close it, if it's outside. In case of Wiimote/touch interfaces this logic won't work of course. Fixes island of dr. brain and QfG1VGA on Wii and touch-interface platforms svn-id: r52474
2010-08-29SCI: adding comment about invalid rect return valMartin Kiewitz
svn-id: r52444
2010-08-29SCI: changing scroll transition behaviourMartin Kiewitz
makes scroll smooth on linux (and maybe others too) svn-id: r52436
2010-08-29SCI: Throttle the invocations of Engine::shouldQuit()Filippos Karapetis
SCI constantly invoked Engine::shouldQuit(), which in turn called 2 virtual functions. This added a significant overhead, as this was called constantly without any throttling whatsoever. Now, the invocation of shouldQuit() is throttled to be on each frame update (i.e. at a rate of 60fps). Thanks to wjp for profiling this. svn-id: r52431
2010-08-25SCI: adding detection for freddy pharkas "fred"Martin Kiewitz
fixes blop not appearing during intro song, because game thought we were too slow (bug #3051514) svn-id: r52392
2010-08-24SCI: fixing comment of r52351Martin Kiewitz
svn-id: r52353
2010-08-24SCI: fix race condition in sierra kPalVary codeMartin Kiewitz
we are loading pictures very fast, this results in a kPalVary race condition, because sierra set timer to 1 tick, when it was getting called with 0 ticks and required the timer to occur before the transition. Fixes freddy pharkas nighttime being daytime during transitions (bug #3051905) svn-id: r52351
2010-08-24SCI: dont load target palette when gameIsRestarting != 0Martin Kiewitz
fixes sepia palette getting applied when loading in pharkas (part of bug #3051905) svn-id: r52326
2010-08-23SCI: multiple changes for mother goose vgaMartin Kiewitz
which is sci1 and sci1.1 fixes bug #3051145 - separating this mother goose from ega and sci2.1 - adding workaround when restoring saved games in these games, games try to calculate restored savedgameid instead of looking it up, we patch this code out and also set the global to the current savedgameid - adding workaround for scripts checking savedgameid to be below 13 (our savedgameids begin at 100 now) - changing official range for savedgameids from 1000->1999 to 100->199, otherwise mother goose would have required much larger patches and this range should be fine even if we replace savedgame dialogs later svn-id: r52301
2010-08-23SCI: slightly changing msecs for scrollingMartin Kiewitz
svn-id: r52299
2010-08-21SCI: improving delaying transitionsMartin Kiewitz
should hopefully make them run better on different platforms (some platforms dont update on every updateScreen call, so the transitions worked much faster there (e.g. wii) and some other platforms dont have that much power, so transitions were slower on those) svn-id: r52266
2010-08-21SCI: now fading color 255 as well in sci1.1Martin Kiewitz
looks better, although sierra didn't do that (examples: qfg3 demo/intro) svn-id: r52264
2010-08-21SCI: add support for Control-C in earlier SCI games, tooFilippos Karapetis
svn-id: r52254
2010-08-21SCI: Fixed bug #3048911 - "Keyboard discrepancies in all SCI games" by ↵Filippos Karapetis
handling synthetic (keyboard repeat) events and adding support for Control-C svn-id: r52252
2010-08-20Reverting r52224, as it was incorrect - fanmade games use the same ↵Filippos Karapetis
interpreter as normal ones, so this doesn't make sense. Added a FIXME with a description about the graphics glitch in fanmade games svn-id: r52225
2010-08-20SCI: Fixed bug #3041153 - "SCI Fanmade Games: Message window glitch"Filippos Karapetis
svn-id: r52224
2010-08-20SCI: Fixed bug #3049146 - "MOTHERGOOSE CD: Rooms 7, 23 crash", merged some ↵Filippos Karapetis
similar workaround entries and added a comment for invalid rects received in kCan(t)BeHere svn-id: r52223
2010-08-19SCI: disabling EGA mapping after sci1egaMartin Kiewitz
fixes vga conversion games graphic glitches, some views have bad mapping tables svn-id: r52218
2010-08-16SCI: sci1.1 pictures w/o cel don't set paletteMartin Kiewitz
even if one is present in the picture, fixes some transitions looking weird in eq2 - bug #3037126 svn-id: r52125
2010-08-14SCI: now reusing window ids on kNewWindowMartin Kiewitz
sq4cd recreates the inventory window several times, but also reuses old window ids, causing kernelSetActive errors. fixes bug #3044757 svn-id: r52079
2010-08-14SCI: adding workaround for camelot during endingMartin Kiewitz
fixes bug #3044734 also fixing heap corruption during the ending svn-id: r52077
2010-08-14SCI: Add support for Mac 'crsr' cursors used in SCI2+ gamesMatthew Hoops
svn-id: r52076
2010-08-13SCI: extending life of port for sq4 gum wrapperMartin Kiewitz
fixes bug #3044507 svn-id: r52068
2010-08-12SCI: fixing text color supportMartin Kiewitz
fixes some words not being red in pepper (part of bug #3040039) svn-id: r52031
2010-08-11SCI: properly doing kAnimate loop/cel fixingMartin Kiewitz
really weird, but it works now. Bug #3037578 (kq5 trunk), bug #3043286 (lb1 knight) svn-id: r52007
2010-08-11SCI: revert r51969Martin Kiewitz
broke laura bow 1, need to figure out whats exactly wrong svn-id: r52004
2010-08-11SCI: fixing kGraphFillBoxAny implementationMartin Kiewitz
working now like in sierra sci, when using priority/control - fixes pepper adventures in time - no failure screen - bug #3040185 cleanup of GfxPaint16::fillRect svn-id: r51994
2010-08-11SCI: kAddToPic only wrote nsRect in sci1.1Martin Kiewitz
fixes regression of r51952 and bug #3042957 svn-id: r51971
2010-08-11SCI: kAnimate invalid loop/cels now correctly fixedMartin Kiewitz
fixes kq5 trunk getting closed again during intro - is actually a script bug that sets cel to some really high number - bug #3037578, may also fix other similar issues svn-id: r51969
2010-08-10SCI: improving comment about r51955Martin Kiewitz
svn-id: r51956
2010-08-10SCI: adding displaceY adjust for sci1.1 viewsMartin Kiewitz
sierra sci did this in their getCelRect(), we are doing it while loading, fixes laura bow not appearing in taxi (bug #3041220) svn-id: r51955
2010-08-10SCI: kAddToPic(list) set fixed priority flagMartin Kiewitz
svn-id: r51954
2010-08-10SCI: add scaling support to kAddToPicMartin Kiewitz
fixes laurabow2 bug #3041226 svn-id: r51952
2010-08-10SCI: adding workaround for kq5Martin Kiewitz
when giving the tambourine to the monster - bug #3041262 svn-id: r51950
2010-08-08SCI: kDisposeWindow changesMartin Kiewitz
kDisposeWindow doesn't free windows immediately anymore. We free them after some calls to kSetPort, so the handle will be valid for a short time. Fixes sq4cd and hoyle 4 (commented out patching of script for hoyle 4) svn-id: r51932
2010-08-07SCI: changing kBaseSetter behaviour when scaledMartin Kiewitz
fixes lb2 docks issue (bug #3036306) svn-id: r51835
2010-08-06SCI: adding script patchingMartin Kiewitz
including a patch for hoyle 4 and commenting out the workaround code inside kDisposeWindow svn-id: r51795
2010-08-05SCI: actually enable hoyle 4 workaroundMartin Kiewitz
and adding additional comment svn-id: r51754
2010-08-05SCI: changing hoyle 4 workaroundMartin Kiewitz
fixing hoyle 4 detection entry (not a demo) adding direct selector fix, maybe we should replace this later with a script patch adding detailed comment about the issue svn-id: r51753
2010-08-04SCI: Add kDisplay workarounds for the Hero's Quest demoMatthew Hoops
svn-id: r51742
2010-08-04SCI: Fixed an off-by-one error in GfxPorts::getPortById() and moved the ↵Filippos Karapetis
error checking code outside the function. Also fixed script bug #3039305 - "HOYLE4: segfault" svn-id: r51733