Commit Graph
1475 Commits
Author SHA1 Message Date
Martin Kiewitz e857cc623e SCI: added comment - lsl5 also has too large windows
svn-id: r50450
2010-06-28 16:35:20 +00:00
Willem Jan Palenstijn 0f0977535c Remove CRs
svn-id: r50435
2010-06-28 12:13:04 +00:00
Martin Kiewitz 445bfee08c SCI: add const again to newWidth
svn-id: r50434
2010-06-28 12:09:48 +00:00
Martin Kiewitz 6981b943b5 SCI: fix regression of r50424, 2x scaling
svn-id: r50433
2010-06-28 12:04:35 +00:00
Max Horn 1453093391 SCI: Cleanup GfxView code (formatting etc.); also insert some asserts to protect scalingX/Y arrays
svn-id: r50425
2010-06-28 11:21:23 +00:00
Max Horn 793d482f4f SCI: Optimized GfxScreen::scale2x a bit
svn-id: r50424
2010-06-28 11:21:07 +00:00
Max Horn 7e0240ab14 SCI: Comment cleanup
svn-id: r50423
2010-06-28 11:20:51 +00:00
Max Horn 2c01d10a36 SCI: Remove GfxView::getLoopInfo; add assert to GfxView::getCelInfo
The return value of GfxView::getCelInfo was used virtually everywhere
without a check for it being non-NULL. Hence instead of returning
NULL when the loop count is zero, it makes more sense to assert out
(instead of a segfault, or worse, random data being used).

svn-id: r50422
2010-06-28 11:20:33 +00:00
Max Horn 9f48a37671 SCI: Add const qualifiers to many GfxView methods and their return values.
This helps to ensure proper data encapsulation.
Also reformatted some overlong comments to 80 chars per line, and
fixed some other code formatting issues.

svn-id: r50421
2010-06-28 11:20:14 +00:00
Max Horn db2d41a433 SCI: Make src param of GfxScreen::scale2x const
svn-id: r50420
2010-06-28 11:19:45 +00:00
Filippos Karapetis 52ddc711d0 SCI: separated the graphics initialization code a bit
- Moved all of the graphics initialization code on startup inside initGraphics()
- Moved all of the screen initialization (resolution, upscaled graphics etc) code inside GfxScreen()

svn-id: r50412
2010-06-28 08:18:55 +00:00
Filippos Karapetis e6a9a9da82 Silenced a false positive in MSVC about a potentially uninitialized variable
svn-id: r50392
2010-06-27 20:22:09 +00:00
Lars Skovlund 6864d09d68 SCI: Fix for large views in GK2. At least it does not segfault now.
svn-id: r50376
2010-06-27 13:15:01 +00:00
Willem Jan Palenstijn af755b0b3d Further improve readability
svn-id: r50345
2010-06-26 21:36:25 +00:00
Willem Jan Palenstijn caded4f892 Improve readability
svn-id: r50340
2010-06-26 20:28:42 +00:00
Martin Kiewitz 41aca44b03 SCI: another commit for adding a workaround for islang room 300 again (although i already commited it already, stupid torturegit)
svn-id: r50330
2010-06-26 16:27:01 +00:00
Filippos Karapetis 784f52a677 Removed the getHunkPointer error - it's valid SCI behavior (e.g. when loading/quitting sometimes, since hunks are not saved). We check for valid hunk pointers anyway, so there's no reason for the warning/error
svn-id: r50279
2010-06-25 17:59:49 +00:00
Filippos Karapetis aedc77f0bd When loading a game, stop all running VMs recursively, and also stop kAnimate's current recursion. This fixes the invalid execution stack frame in SQ1, when loading from the death screen after dying from the acid drops in Kerona. This should also fix the invalid hunk pointers, thus the warning about invalid hunk pointers has been turned into an error, as it shouldn't occur anymore
svn-id: r50277
2010-06-25 17:25:00 +00:00
Max Horn 6ee82a2027 SCI: Introduce SciGameId enum
svn-id: r50273
2010-06-25 16:16:29 +00:00
Martin Kiewitz c6b0a5e896 SCI: detect, if SCI1.1 game is merging or copying palette instead of using gameIds. Also prints method used, when using debug command "version"
svn-id: r50261
2010-06-25 10:04:31 +00:00
Martin Kiewitz 0722d96a3e SCI: fix kTextSize to not crash when destination has an invalid rect in it
svn-id: r50210
2010-06-24 11:52:08 +00:00
Martin Kiewitz 51ba34df0e SCI: we extended the showBits() rect all the way depending on where the object moved, fixed - fixes kq6cd flickering coin and pq1 flickering locker issue
svn-id: r50190
2010-06-23 20:13:33 +00:00
Martin Kiewitz 72ee20bc4d SCI: cnick-laurabow & cnick-kq are called with -Nw 0 0...
svn-id: r50187
2010-06-23 17:05:54 +00:00
Martin Kiewitz e7634ee147 SCI: it seems that all cnick games are using the inbetween interpreter
svn-id: r50186
2010-06-23 16:58:42 +00:00
Martin Kiewitz e39f2ae1c1 SCI: adding cnick-longbow to inbetween sci1.1 in GfxPalette
svn-id: r50185
2010-06-23 16:53:56 +00:00
Filippos Karapetis 0a102981f0 Moved the SelectorCache struct inside selector.h, where it belongs, and fixed some header dependencies in the process
svn-id: r50183
2010-06-23 15:23:37 +00:00
Martin Kiewitz c1d3fd670c SCI: global scaling implemented (hopefully, i'm not sure if it works 100% :P) thx to waltervn for telling me the vocab 994 stuff used for disassembly
svn-id: r50181
2010-06-23 14:06:31 +00:00
Martin Kiewitz eeba2812c1 SCI: adding some more global scaling code, adding vanishingY and vanishingX as selectors
svn-id: r50180
2010-06-23 13:42:09 +00:00
Martin Kiewitz 3bc011357b SCI: some initial work on global scaling
svn-id: r50179
2010-06-23 12:58:14 +00:00
Martin Kiewitz f0145e6dcd SCI: implementing boundary checking for GfxPalette::createFromData(), sq5 has a broken picture 0 resource, which would result in either crash or at least bad read from memory depending on whats read there
svn-id: r50178
2010-06-23 11:47:14 +00:00
Martin Kiewitz b68180efe5 SCI: added nicks picks sq to the sci1.1 interpreter games, the other ones may also use the same interpreter, but we currently can not verify
svn-id: r50172
2010-06-22 21:58:55 +00:00
Martin Kiewitz 04c04ff01e SCI: eco quest 1 demo also uses inbetween sci1.1 interpreter, fixing graphics
svn-id: r50170
2010-06-22 21:24:52 +00:00
Martin Kiewitz d8968ee5b9 SCI: reversing r50168, demo is using the same offTop as well (demo.bat)
svn-id: r50169
2010-06-22 21:05:34 +00:00
Martin Kiewitz 93b2336aa2 SCI: demo of fairy tales uses regular offTop
svn-id: r50168
2010-06-22 21:01:34 +00:00
Martin Kiewitz a836f965f8 SCI: set offTop to 26 for mixed up fairy tales to fix all sorts of non-fully-removed windows
svn-id: r50166
2010-06-22 20:40:41 +00:00
Martin Kiewitz 38cf6aa3e4 SCI: implemented kAssertPalette and a palvary fix for ::set, fixes erana's place in qfg1vga nighttime
svn-id: r50162
2010-06-22 19:01:43 +00:00
Martin Kiewitz 079e5c3135 SCI: fixed typo
svn-id: r50154
2010-06-22 17:13:44 +00:00
Martin Kiewitz 9ca43423b4 SCI: kPalVary(SetTarget) implemented
svn-id: r50153
2010-06-22 17:05:00 +00:00
Matthew Hoops 0ab7a16e45 Fix the Hoyle 4 (Hoyle Classic) demo's top offset. It currently errors out later from lacking a selector (static selector problem).
svn-id: r50118
2010-06-21 19:07:41 +00:00
Martin Kiewitz 8fce660090 SCI: also set throttle trigger on kPalette(animate)
svn-id: r50109
2010-06-21 10:40:48 +00:00
Martin Kiewitz 98196b8af6 SCI: GfxPalette::kernelSetIntensity() now also triggers throttler - somewhat "fixes" lb2cd when selecting play game
svn-id: r50108
2010-06-21 10:14:04 +00:00
Martin Kiewitz 7694993bef SCI: fixed typo
svn-id: r50101
2010-06-20 21:14:46 +00:00
Martin Kiewitz 6f195ae5a4 SCI: implemented kPalVary(changeTicks)
svn-id: r50100
2010-06-20 21:12:15 +00:00
Martin Kiewitz 4a83b2c5f6 SCI: properly implement kPalVary functionality within kDrawPic and transitions, so pharkas finally works w/o palette corruption
svn-id: r50099
2010-06-20 20:52:31 +00:00
Martin Kiewitz 66b9eaac34 SCI: adding timestamp update for frameout, fixes gk1 windows main menu
svn-id: r50094
2010-06-20 20:09:07 +00:00
Martin Kiewitz 3a9217dd5a SCI: disable palvary when reverse is fully done - fixes palette getting stuck in pharkas (the broken palette in there is actually not caused by palvary, it was just overwritten before by view palette updates and those dont occur when palvary is active)
svn-id: r50093
2010-06-20 20:05:00 +00:00
Martin Kiewitz d37a25cfee SCI: cleanup of SciPalette
svn-id: r50091
2010-06-20 19:18:33 +00:00
Martin Kiewitz 3c6639eb86 SCI: implemented kPalVary(reverse) for pharkas, although there is a bug somewhere, not working 100%
svn-id: r50089
2010-06-20 18:20:05 +00:00
Matthew Hoops ff785325ad Sort planes in kFrameOut by priority and keep plane/item priority separate as they represent two different things. Fixes various SCI32 graphical glitches. Most (all?) remaining glitches are because we don't yet handle kSignalFixedPriority.
svn-id: r50087
2010-06-20 17:17:46 +00:00
Martin Kiewitz 7ecff0a300 SCI: implementing kPalVary(2)
svn-id: r50085
2010-06-20 17:08:39 +00:00