Commit Graph
588 Commits
Author SHA1 Message Date
Filippos Karapetis 0b83a8eec0 Reimplemented isItSkip() using new graphics code
svn-id: r45461
2009-10-28 13:43:09 +00:00
Filippos Karapetis 04ab6bc9fc Enclose all of the old graphics code within the INCLUDE_OLDGFX safeguard (defined in sci.h)
svn-id: r45459
2009-10-28 13:20:30 +00:00
Filippos Karapetis b5feeb60b6 Moved the cel count calculation to the new graphics code
svn-id: r45379
2009-10-25 22:33:08 +00:00
Martin Kiewitz f0fc4810fd SCI: kAddToPic - removing support for argc==0 case, if this really gets used somewhere, we need to set _picNotValid in that case
svn-id: r45372
2009-10-25 18:43:23 +00:00
Martin Kiewitz 701caea8d7 SCI: kAddToPic - abort when list is null reference (fixes qfg1 saved game loading on some screens)
svn-id: r45351
2009-10-23 20:41:59 +00:00
Martin Kiewitz 9c9181eed6 SCI: speed throttler moved to kGameIsRestarting for all games. Also made the delay shorter. sq3 now seems to work fine, kq1 also has animations and lsl5 mud wrestling is also working correctly.
svn-id: r45345
2009-10-23 11:25:48 +00:00
Martin Kiewitz 12cdcea516 SCI: kAnimate disable throttler for SCI0 and SCI01 games cause of issues in at least kq1. temporary solution only!
svn-id: r45341
2009-10-22 21:19:03 +00:00
Filippos Karapetis 42068f5853 Cleanup
svn-id: r45337
2009-10-22 15:12:54 +00:00
Filippos Karapetis 1f4ad52c61 Moved the view loop counting code in the new GUI
svn-id: r45322
2009-10-22 05:41:50 +00:00
Filippos Karapetis b105d690e3 - Removed kShow() and the related code it uses - it's a debugging function, and we have the same functionality in the debug console
- Merged the view signal flags from kernel.h and gui_animate.h, and named them appropriately. Also, updated the notes next to them, cause some were incorrectly marked as not used in our engine
- Added a note about a hack used in the old GUI in the view signal flags
- Moved the control state flags inside gui_helpers.h

svn-id: r45310
2009-10-21 19:19:03 +00:00
Martin Kiewitz f2c6950983 SCI: kPalVary - pause
svn-id: r45292
2009-10-20 20:57:08 +00:00
Martin Kiewitz 35071a25b4 SCI: kPalVary basic
svn-id: r45287
2009-10-20 19:56:37 +00:00
Martin Kiewitz 1e1172af49 SCI/newgui: Changed kPalette(animate) and implemented setFlags/unsetFlags
svn-id: r45277
2009-10-20 18:45:46 +00:00
Martin Kiewitz 907134076d SCI/newgui: kPalette/animate - accidentally changed speed to uint16 in prev. revision although its signed
svn-id: r45274
2009-10-20 16:18:29 +00:00
Martin Kiewitz 361977e7ed SCI/newgui: kPalette cleanup, preparing for sq5 paletteAnimate support
svn-id: r45273
2009-10-20 16:11:31 +00:00
Martin Kiewitz 2f9d24f932 SCI: kDrawCel priority is signed
svn-id: r45239
2009-10-18 20:34:37 +00:00
Max Horn f3ab3051d8 SCI: Make the implicit segMan param to GET_SEL32(V) and PUT_SEL32(V) explicit
svn-id: r45234
2009-10-18 19:42:56 +00:00
Matthew Hoops c8853f0cc0 Move the SeqDecoder to the Sci namespace, it makes more sense than Graphics because it's only used in Sci.
svn-id: r45230
2009-10-18 18:47:53 +00:00
Martin Kiewitz 2ab93510d3 SCI: cleanup text alignment
svn-id: r45224
2009-10-18 15:38:49 +00:00
Filippos Karapetis a10929594d Re-enabled the speed throttler for SCI1.1 games again, as disabling it makes CPU load spike up in some of them (e.g. LSL6). Added a workaround for the Sierra logo scene in QFG3, too
svn-id: r45215
2009-10-18 10:40:36 +00:00
Filippos Karapetis 6dc95abcfa Limited the speed throttler in kAnimate to work on SCI0-SCI1. SCI1.1 games seem to work fine without it, and disabling it removes the very long delay at the Sierra logo in QFG3
svn-id: r45211
2009-10-18 10:21:53 +00:00
Martin Kiewitz b32cf088e2 SCI: kAnimate comment added about qfg3
svn-id: r45189
2009-10-17 14:45:05 +00:00
Martin Kiewitz 2ada85b6cc SCI: kAnimate now delays the first few calls less, otherwise sq3 will remove details graphicwise. Walter please check, if this creates a regression with lsl3.
svn-id: r45173
2009-10-16 18:46:18 +00:00
Filippos Karapetis 1d679723c3 Hide the mouse cursor when showing a video
svn-id: r45171
2009-10-16 18:16:23 +00:00
Matthew Hoops b43e99566e Converting AVIPlayer into a class that inherits from VideoDecoder and adapt SCI to use this. Also, moving the codec and Codec class into their own folder. (Based on a patch by md5)
svn-id: r45170
2009-10-16 18:05:56 +00:00
Martin Kiewitz c213032da9 SCI: insert comment about kq6 issue caused by new speed throttler. theoretically this could go away when reanimate/cel updates are implemented
svn-id: r45160
2009-10-16 11:22:06 +00:00
Filippos Karapetis 600d5199fc Moved the SEQ decoder outside the gfx directory, as it is completely stand alone now and no longer uses any GUI-related code
svn-id: r45153
2009-10-16 08:26:41 +00:00
Filippos Karapetis 422b732dba Added a new convenience method to the video player, which adds the event of skipping videos with the escape key by default, thereby simplifying the video playing code in all places where it's used
svn-id: r45151
2009-10-16 07:42:23 +00:00
Filippos Karapetis da7652deb3 Changed the KQ6 floppy SEQ decoder to use the common VideoPlayer interface. Some cleanup
svn-id: r45124
2009-10-15 15:17:54 +00:00
Martin Kiewitz e195b88707 SCI: kAnimate speed throttler fix
svn-id: r45118
2009-10-15 13:30:18 +00:00
Martin Kiewitz 0868fd24d2 SCI: kAnimate now uses gfxop_sleep for sleeping, mouse cursor is more fluid that way
svn-id: r45105
2009-10-15 07:50:10 +00:00
Martin Kiewitz 942dc2ce84 SCI: included stub for kPalVary to make Pharkas work a little bit more (currently crashes in kMessage)
svn-id: r45102
2009-10-15 06:37:05 +00:00
Martin Kiewitz a7e6f50ede SCI: removed speed throttler (cause of kAnimate change)
svn-id: r45094
2009-10-14 21:48:52 +00:00
Martin Kiewitz a7e51b8276 SCI: kAnimate now delays a bit if needed (fixes typing in intro of lsl5, kq6 sierra logo and much more)
svn-id: r45093
2009-10-14 21:45:16 +00:00
Martin Kiewitz bc49c6e63e SCI/newgui: kPalette / setIntensity / reimplemented setPalette optional parameter, fixed memory corruption in setIntensity
svn-id: r45091
2009-10-14 19:39:07 +00:00
Martin Kiewitz 3c5c954154 SCI/newgui: changed kPalette (setIntensity) to behave differently (seems we had it wrong) also changed nonsense clipping
svn-id: r45090
2009-10-14 18:35:15 +00:00
Martin Kiewitz 8e58d5ef80 SCI: kDrawPic now reads out blackout flag for transitions
svn-id: r45089
2009-10-14 18:09:54 +00:00
Filippos Karapetis 20036d3cb4 Fixed the palette in the SEQ decoder again
svn-id: r45088
2009-10-14 18:03:47 +00:00
Filippos Karapetis 1b3a5eaff6 Started rewriting the SEQ decoder to use the new GUI functions
svn-id: r45083
2009-10-14 15:21:53 +00:00
Filippos Karapetis b220471efd Fixed kMoveCursor(). Now the cursor will be moved to the correct spot when pressing tab in dialogs
svn-id: r45078
2009-10-14 13:28:36 +00:00
Martin Kiewitz 5da32b16c2 SCI: kDrawPic - flags is actually uint16
svn-id: r45069
2009-10-14 11:28:50 +00:00
Martin Kiewitz caaac0130a SCI: kDrawControl now also fixes bad rects (fixes jones/vga)
svn-id: r45064
2009-10-14 10:11:03 +00:00
Max Horn 28034ef298 SCI: Fix warning, cleanup
svn-id: r45059
2009-10-14 09:36:39 +00:00
Filippos Karapetis 8570068f58 - Moved cel width and height calculation in the GUI
- Merged the engine states of the old and new GUI

svn-id: r45057
2009-10-14 09:28:58 +00:00
Filippos Karapetis b49d6d950b Moved some old GUI specific code from kgraphics.cpp into gui32.cpp
svn-id: r45047
2009-10-13 20:25:51 +00:00
Martin Kiewitz 8ccafc09a9 SCI/newgui: DrawControl type 10 is actually just a dummy in qfg1ega, we dont need to do anything. I believe some other control is responsible for the percentage box
svn-id: r45044
2009-10-13 19:08:40 +00:00
Martin Kiewitz f5b73061e4 SCI/newgui: K_CONTROL_* renamed to SCI_CONTROLS_TYPE_*
svn-id: r45035
2009-10-13 18:49:10 +00:00
Martin Kiewitz b4a537137b SCI: stub for kDrawControl K_CONTROL_PERCENTAGE
svn-id: r45032
2009-10-13 17:50:27 +00:00
Filippos Karapetis f9c6e77abe Removed some leftover code, fixes KQ5CD
svn-id: r45031
2009-10-13 17:22:52 +00:00
Filippos Karapetis 4e0046dd1f Merged the rest of the cursor code
svn-id: r45029
2009-10-13 17:09:32 +00:00