Commit Graph

516 Commits

Author SHA1 Message Date
Martin Kiewitz
c422e39bf8 SCI: implemented kPalette(save/restore)
svn-id: r51381
2010-07-27 17:51:44 +00:00
Martin Kiewitz
d013be51e5 SCI: reverting part of r51361
breaks qfg3 right after intro

svn-id: r51363
2010-07-27 11:18:51 +00:00
Martin Kiewitz
114f4dfb0a SCI: adding scaling code in kBaseSetter
and fixing palVary timer crash when exiting engine during palVary processing

svn-id: r51361
2010-07-27 11:11:47 +00:00
Martin Kiewitz
4fb7b06570 SCI: translating nsRect back to actual plane coordinate
on scrollable planes

svn-id: r51350
2010-07-27 09:17:57 +00:00
Martin Kiewitz
a27f30fa15 SCI: fixing text fonts not working correctly
fixes sq5 and bug #3034766

svn-id: r51335
2010-07-26 22:58:06 +00:00
Martin Kiewitz
ea5f8049a2 SCI: fixing scroll transitions for kq6 hires
fixes bug #3034587

svn-id: r51334
2010-07-26 21:25:07 +00:00
Martin Kiewitz
57136cd86a SCI: implement scaling for kDrawCel
fixes qfg4 demo properly (bug #3034506, previous commit r51304)

svn-id: r51332
2010-07-26 19:25:56 +00:00
Martin Kiewitz
18a54f086f SCI: fixing transition 9
fixes castle of dr. brain intro on amiga

svn-id: r51323
2010-07-26 16:49:04 +00:00
Martin Kiewitz
31828d093c SCI: commenting out picture cel debug msg
svn-id: r51315
2010-07-26 14:44:28 +00:00
Martin Kiewitz
e3e2ae799e SCI: adding scrollcapability to sci32
svn-id: r51313
2010-07-26 14:41:19 +00:00
Martin Kiewitz
c0d915b616 SCI: some scrolling support for sci32
not fully done yet

svn-id: r51308
2010-07-26 12:20:07 +00:00
Filippos Karapetis
9da4c3f883 SCI: Some cosmetic changes to the warning thrown when fixing invalid windows
svn-id: r51306
2010-07-26 09:18:04 +00:00
Filippos Karapetis
27ce375a95 SCI: Fixed bug #3034507, "PQ2 Demo: Non-existant menu item"
svn-id: r51294
2010-07-26 05:49:00 +00:00
Martin Kiewitz
e3866046af SCI: adding kAddPicAt dummy
svn-id: r51283
2010-07-25 20:41:23 +00:00
Martin Kiewitz
9b1d691594 SCI: blacking out planes that got deleted
svn-id: r51282
2010-07-25 19:56:44 +00:00
Martin Kiewitz
c721b4d612 SCI: some changes for kq7
- resetting negative plane left/top
- kSave(0) returns SIGNAL

svn-id: r51281
2010-07-25 19:47:12 +00:00
Martin Kiewitz
633d13faee SCI: removing onControl from coordAdjuster32
svn-id: r51278
2010-07-25 17:01:54 +00:00
Martin Kiewitz
d5ced8ab9e SCI: using coordadjuster in GfxView
svn-id: r51276
2010-07-25 16:37:36 +00:00
Martin Kiewitz
b3949cf4be SCI: sci32 coord adjustment changes
- fixes lsl6hires inventory

svn-id: r51275
2010-07-25 16:31:46 +00:00
Martin Kiewitz
da5f1506e3 SCI: adjust z coordinate for views (sci32)
fixes gk1 newspaper

svn-id: r51272
2010-07-25 12:48:48 +00:00
Martin Kiewitz
3090ee6ee7 SCI: sci32 changes
- mouse position now gets adjusted inside kGetEvent
- priority is read out during kFrameout
- check planeRect
- check if plane picture resource actually exists

fixes sq6

svn-id: r51270
2010-07-25 04:45:28 +00:00
Martin Kiewitz
adf4195e0b SCI: changing how insectRect gets applied
svn-id: r51259
2010-07-24 21:18:07 +00:00
Martin Kiewitz
f3f3f1d6db SCI: adding kOnMe transparency support
and disabling speed throttler for poor clones computer :P
fixes some hotspots in gk1 only supposed to react on actual pixel clicks

svn-id: r51255
2010-07-24 19:38:13 +00:00
Martin Kiewitz
e515bc56d1 SCI: fix warning
svn-id: r51253
2010-07-24 18:35:39 +00:00
Martin Kiewitz
252e7736e5 SCI: honor given order of screen items in sci32
fixes gk1 game menu slider controls

svn-id: r51252
2010-07-24 18:06:49 +00:00
Martin Kiewitz
353b0d2993 SCI: support useInsetRect in kFrameout
svn-id: r51251
2010-07-24 17:43:56 +00:00
Martin Kiewitz
f0a2c10c92 SCI: enable speed throttler for sci32
svn-id: r51250
2010-07-24 16:52:08 +00:00
Martin Kiewitz
9bea286e49 SCI: cache Planes for sci32
svn-id: r51249
2010-07-24 16:47:12 +00:00
Martin Kiewitz
d643928d0d SCI: delete hidden planes in kFrameout
svn-id: r51246
2010-07-24 15:25:29 +00:00
Martin Kiewitz
2047e75d2b SCI: kCelWide/kCelHigh now adjust on hires views
somewhat fixes gk1 hires inventory issue

svn-id: r51245
2010-07-24 15:15:38 +00:00
Martin Kiewitz
63c945f93a SCI: fix warning and remove duplicate code
svn-id: r51243
2010-07-24 11:59:40 +00:00
Martin Kiewitz
9672c757d6 SCI: adding 1 to planeRect bottom/right
svn-id: r51241
2010-07-24 10:12:56 +00:00
Martin Kiewitz
c8dc2e4b8b SCI: locking picture resource
fixes sq6 crashing with resource data NULL pointer

svn-id: r51240
2010-07-24 08:20:54 +00:00
Martin Kiewitz
c8cde0735f SCI: adding workaround for sq4 room 391
svn-id: r51238
2010-07-24 07:55:29 +00:00
Martin Kiewitz
20b1d80d59 SCI: adding table for kDisplay workarounds
and removing hardcoded checks, adding another workaround for kGraph(drawLine) in island of dr. brain (also gene explanation chart)
Moving trackOriginAndFindWorkaround() into workarounds.cpp

svn-id: r51209
2010-07-23 14:32:24 +00:00
Martin Kiewitz
0bcc3af422 SCI: adding workaround for sq4/room 391
kDisplay is called with an object as opcode, we simply skip over it

svn-id: r51208
2010-07-23 13:57:45 +00:00
Martin Kiewitz
32c81fa918 SCI: fixing kNewWindow (SCI1.1)
check differently for null restoreRect, fixes pq3 some windows not getting fully removed
calling showBits on actual dims and not on restoreRect, fixes lb2 about window issues (and possible qfg1vga window issues as well)

svn-id: r51204
2010-07-23 12:37:58 +00:00
Martin Kiewitz
8e04d25be6 SCI: support kSetCursorSci11(-2)
svn-id: r51202
2010-07-23 10:58:06 +00:00
Filippos Karapetis
3aa4f76ee4 SCI: Now saving the kPalVary state inside savegames
svn-id: r51194
2010-07-23 07:36:55 +00:00
Filippos Karapetis
a9414ebb08 SCI: Some slight work on robot files
svn-id: r51176
2010-07-22 22:04:40 +00:00
Matthew Hoops
9dcbff7259 SCI: Hopefully fix compilation when ENABLE_SCI32 is not defined
svn-id: r51164
2010-07-22 20:38:28 +00:00
Martin Kiewitz
0e9291e929 SCI: fixing mirrored sci32 pictures
fixes lsl6, also slight cleanup and adding comments about sci32 picture resources

svn-id: r51162
2010-07-22 20:11:53 +00:00
Martin Kiewitz
0848e3dd93 SCI: doing res correction on text as well
"fixes" lsl6 abort intro dialog

svn-id: r51159
2010-07-22 19:30:20 +00:00
Martin Kiewitz
49c41ab166 SCI: some changes to kFrameout for sci32
cels are now clipped correctly against plane boundaries, nsRect is also set now, fixes some hotspot issues and larry disappearing when going to the left/right of screen

svn-id: r51158
2010-07-22 19:20:26 +00:00
Filippos Karapetis
aa15d5fcd1 SCI: Remove sanity check introduced in rev 51154. When a node is deleted via kDeleteKey, the successor is set to NULL, thus list processing stops (which is what SSCI is doing).
svn-id: r51157
2010-07-22 18:14:43 +00:00
Filippos Karapetis
91e909a25c SCI: Added a sanity check for rev 51152. If a node has been deleted, it shouldn't have a successor node
svn-id: r51154
2010-07-22 17:53:32 +00:00
Filippos Karapetis
634d959897 SCI: Fixed the crash in LSL2, room 42 (when arriving at the island). kAnimate may refer to unfrozen objects which have been deleted, thus handle that case accordingly.
svn-id: r51152
2010-07-22 17:25:21 +00:00
Filippos Karapetis
b587bf35c8 SCI: changed the comment about the palette merging (it's not a workaround anymore). Also, changed the warning when a picture has a broken palette into debug output - these pictures (which can be found in other games too) are usually meant to be blank, thus don't have a palette
svn-id: r51148
2010-07-22 16:01:32 +00:00
Matthew Hoops
c1ad4a1110 Use new[]/delete[] instead of malloc/free
svn-id: r51144
2010-07-22 14:33:14 +00:00
Matthew Hoops
ede85a539a Silence gcc warning
svn-id: r51143
2010-07-22 14:29:00 +00:00