Commit graph

1473 commits

Author SHA1 Message Date
Filippos Karapetis
43ca6071ea Handle invalid rects in kCanBeHere(). Fixes some odd crashes in Iceman
svn-id: r48098
2010-02-21 00:50:27 +00:00
Max Horn
ee1110a114 SCI: Reduce header interdependencies
svn-id: r48086
2010-02-17 23:38:43 +00:00
Max Horn
903b694574 SCI: Cleanup resource.h
svn-id: r48084
2010-02-17 23:37:32 +00:00
Max Horn
b9a11ddb0b SCI: Move language related code from EngineState to SciEngine
svn-id: r48052
2010-02-13 17:46:44 +00:00
Max Horn
e45f0f309a SCI: Remove EngineState::_kernel, use SciEngine::_kernel instead
svn-id: r48050
2010-02-13 17:45:40 +00:00
Max Horn
a82939c9be SCI: Get rid of EngineState::resMan
svn-id: r48048
2010-02-13 17:44:19 +00:00
Max Horn
721a57a661 SCI: Move Gui/Gfx related permanent objects from EngineState to SciEngine
svn-id: r48047
2010-02-13 17:43:31 +00:00
Max Horn
ac4d325e0d SCI: Add global g_sci pointer to the active SciEngine instance
svn-id: r48046
2010-02-13 17:42:49 +00:00
Martin Kiewitz
a4039182ce SCI: also reset some variables inside reset(), so we dont error() out in lsl2 and other games that reset game engine inbetween
svn-id: r48015
2010-02-09 18:24:54 +00:00
Martin Kiewitz
8eecdea67b SCI: GfxPalette::setFromResource() now actually passes force further down the chain
svn-id: r47965
2010-02-07 14:47:40 +00:00
Martin Kiewitz
ed2a3f1f16 SCI: set screen palette only when it got changed during merge (performance only change)
svn-id: r47955
2010-02-07 12:13:34 +00:00
Martin Kiewitz
97c2543b0e SCI: dont set palette on kernelDrawCel() call
svn-id: r47954
2010-02-07 12:06:03 +00:00
Martin Kiewitz
749b0ea237 SCI: added dummy assertpalette to GfxPalette, setting destination palette immediately on kPalVary(start) call
svn-id: r47953
2010-02-07 12:00:06 +00:00
Torbjörn Andersson
6d69960704 Removed unnecessary semi-colons to keep GCC happy.
svn-id: r47942
2010-02-06 21:26:30 +00:00
Martin Kiewitz
4cae2b13e2 SCI: added plane coordinate adjustment code for sci32 when drawing pictures, put everything into GfxCoordAdjuster
svn-id: r47939
2010-02-06 19:35:51 +00:00
Martin Kiewitz
454856b5fd SCI: put kShakeScreen into GfxPaint, called directly now
svn-id: r47936
2010-02-06 17:03:18 +00:00
Filippos Karapetis
2cfa5e428c Mark the sanity checks inside kernelSetNowSeen and kernelBaseSetter as hacks
svn-id: r47932
2010-02-06 16:30:32 +00:00
Filippos Karapetis
788f375703 Added a sanity check for kListAt and made the hack for displaying text work in SCI2 only
svn-id: r47931
2010-02-06 16:12:19 +00:00
Filippos Karapetis
b12437bbfc Don't try and manipulate invalid views (i.e. views with view ID -1/65535, which are most likely the currently missing dynamically constructed text views). Torin chapter 1 starts now (and dies shortly afterwards, but that's a different issue)
svn-id: r47930
2010-02-06 15:58:59 +00:00
Martin Kiewitz
c7cbb80dc4 SCI: removing int8 from kernelSetNowSeen() as well, didnt make any sense :P
svn-id: r47923
2010-02-05 23:17:39 +00:00
Martin Kiewitz
bf82c49ce4 SCI: removing int8 inside kernelSetNowSeen as well, didnt make any sense :P
svn-id: r47922
2010-02-05 23:14:46 +00:00
Max Horn
4be44fe9a2 SCI: Get rid of the mysterious sign_extend_byte() and replace it by a simple cast ;)
svn-id: r47921
2010-02-05 22:56:27 +00:00
Max Horn
b0b89e788b SCI: Document GfxCompare::canBeHereCheckRectList; pass Common::Rect by ref
svn-id: r47920
2010-02-05 22:56:05 +00:00
Max Horn
d2871f925a SCI: Add comment to GfxCompare::canBeHereCheckRectList
svn-id: r47919
2010-02-05 22:55:41 +00:00
Max Horn
f86618f92b SCI: Add a 'SELECTOR' macro
svn-id: r47918
2010-02-05 22:55:18 +00:00
Martin Kiewitz
25a9df8a81 SCI: moving kDisplay into GfxPaint16, now getting called directly as well
svn-id: r47917
2010-02-05 22:31:48 +00:00
Martin Kiewitz
71fb77a5aa SCI: priority band specific stuff now gets called directly w/o SciGui
svn-id: r47916
2010-02-05 22:20:46 +00:00
Martin Kiewitz
9b5363c0e4 SCI: moved control type enum
svn-id: r47915
2010-02-05 21:32:43 +00:00
Martin Kiewitz
f967318225 SCI: remaining cursor functions now also directly called
svn-id: r47914
2010-02-05 21:09:36 +00:00
Martin Kiewitz
16efee3c0d SCI: drawMenuBar, drawStatus now called directly and w/o SciGui
svn-id: r47913
2010-02-05 20:48:06 +00:00
Martin Kiewitz
248bc560f3 SCI: moved onControl etc. into GfxCompare, now getting called directly. also fixed loading saved games due Gfx* changes
svn-id: r47912
2010-02-05 20:44:03 +00:00
Martin Kiewitz
c78a49f563 SCI: initializing _highPlanePri inside GfxFrameout
svn-id: r47910
2010-02-05 19:33:39 +00:00
Martin Kiewitz
a7aa3a6dea SCI: fix warning inside GfxCoordAdjuster header
svn-id: r47909
2010-02-05 19:09:34 +00:00
Martin Kiewitz
f3ea96d168 SCI: GfxCoordAdjuster class added, local2Global and global2Local use that class directly, kGraph / RedrawBox is now using GfxPaint16 directly
svn-id: r47908
2010-02-05 18:56:13 +00:00
Martin Kiewitz
e7cffa90b2 SCI: frameout sci32 stuff now gets called directly w/o SciGui/32
svn-id: r47907
2010-02-05 16:03:14 +00:00
Martin Kiewitz
71519a0a8f SCI: removing debugShowMap from SciGui32
svn-id: r47906
2010-02-05 15:55:18 +00:00
Martin Kiewitz
03dd0ac7bb SCI: screen specific debug functions are now called directly w/o SciGui/32
svn-id: r47905
2010-02-05 15:53:36 +00:00
Martin Kiewitz
ab2941bb52 SCI: adding some minor documentation for the various graphic classes
svn-id: r47904
2010-02-05 15:48:45 +00:00
Martin Kiewitz
f8f490c565 SCI: calling most of the cursor functions directly via _gfxCursor instead of SciGui/32
svn-id: r47903
2010-02-05 14:48:51 +00:00
Martin Kiewitz
6c204cc890 SCI: renamed class Cursor to GfxCursor
svn-id: r47902
2010-02-05 13:05:26 +00:00
Martin Kiewitz
51b608d794 SCI: renamed class Font to GfxFont
svn-id: r47900
2010-02-05 12:30:41 +00:00
Martin Kiewitz
3ad4433adf SCI: renamed SciGuiPicture to GfxPicture
svn-id: r47899
2010-02-05 12:14:03 +00:00
Matthew Hoops
3b6f6bfbd8 SCI2 Windows games are scaled from 320x200 to 640x480, not 640x400. Aspect ratio correction will eventually have to be applied. This fixes a possible segfault when playing the credits video in GK1 (which is 640x480).
svn-id: r47895
2010-02-05 04:16:12 +00:00
Filippos Karapetis
0d85b39468 Moved the PalVary code inside the GfxPalette class
svn-id: r47893
2010-02-04 23:17:33 +00:00
Martin Kiewitz
3a94200e18 SCI: fix build paint16.h change
svn-id: r47892
2010-02-04 22:30:46 +00:00
Martin Kiewitz
cabd18da9e SCI: renaming class View to GfxView
svn-id: r47891
2010-02-04 22:17:58 +00:00
Martin Kiewitz
c336204a3f SCI: renaming Transitions to GfxTransitions
svn-id: r47890
2010-02-04 21:04:47 +00:00
Martin Kiewitz
5f39e3b7b5 SCI: kPicNotValid now uses GfxScreen directly and not SciGui/32
svn-id: r47889
2010-02-04 20:52:56 +00:00
Martin Kiewitz
00ac235331 SCI: making pathfinding debug support also work in sci32 (though it just shows the path for 2.5 seconds there)
svn-id: r47888
2010-02-04 20:43:00 +00:00
Martin Kiewitz
e74bd30a2e SCI: putting most kGraph functions into GfxPaint16
svn-id: r47887
2010-02-04 20:18:01 +00:00