Martin Kiewitz
54e69d6359
SCI: changed kDrawPic to use oldGfxFuncs()
...
svn-id: r44757
2009-10-07 21:10:42 +00:00
Martin Kiewitz
0b83993a64
SCI/newgui: kDrawPic cleanup, addToFlag inverse detection currently not working needs fixing
...
svn-id: r44756
2009-10-07 20:58:33 +00:00
Martin Kiewitz
0c413530ac
SCI: set default EGA palette to 0, if no parameter is actually given us. Fixes lsl2, kq4, sq3, etc.
...
svn-id: r44743
2009-10-07 18:09:06 +00:00
Martin Kiewitz
1dfe7578cb
SCI/newgui: kSetCursor (show, hide, pos, shape) implemented
...
svn-id: r44734
2009-10-07 14:53:15 +00:00
Martin Kiewitz
77b549a0ad
SCI: SciGuiCursor class added, cleanup, OSystem removed from SciGui constructor
...
svn-id: r44730
2009-10-07 12:47:53 +00:00
Martin Kiewitz
5cc21cedf6
SCI: removed r44595, sierra sci really does behave like Common::Rect, no need for +1
...
svn-id: r44725
2009-10-07 11:35:12 +00:00
Martin Kiewitz
ca9f08c624
SCI/newgui: kHiLite support
...
svn-id: r44701
2009-10-06 16:36:28 +00:00
Filippos Karapetis
91a16e0c7d
Moved the cursor movement code in the GUI
...
svn-id: r44664
2009-10-05 16:43:24 +00:00
Filippos Karapetis
4c35022f6b
Lines are no longer treated as fake rectangles and are shown correctly again
...
svn-id: r44663
2009-10-05 13:33:26 +00:00
Martin Kiewitz
6e38de3905
SCI/newgui: kDrawControl on icon implemented
...
svn-id: r44658
2009-10-05 11:42:04 +00:00
Filippos Karapetis
8568892bf5
- Renamed GUI -> Gui and capitalized as appropriate (e.g. SciGUIwindowMgr -> SciGuiWindowMgr)
...
- Renamed "cell" -> "cel"
svn-id: r44649
2009-10-05 07:10:01 +00:00
Max Horn
db8c6e3f6c
SCI: Really remove sci/gui/gui.h include from engine/state.h
...
svn-id: r44644
2009-10-04 22:43:30 +00:00
Martin Kiewitz
69af4ce9f4
SCI/newgui: implemented kPalette / set intensity
...
svn-id: r44631
2009-10-04 19:49:47 +00:00
Max Horn
6ad5840181
SCI: Rename EngineState::segMan to _segMan
...
svn-id: r44629
2009-10-04 18:38:18 +00:00
Martin Kiewitz
ec526ca461
SCI/gui: renaming...
...
svn-id: r44618
2009-10-04 16:35:02 +00:00
Martin Kiewitz
4957ec3505
SCI: kAddToPic, kAnimate and kSetNowSeen transferred to SciGUI32, not yet implemented in newgui
...
svn-id: r44606
2009-10-04 14:59:51 +00:00
Max Horn
a1e2ba1ba5
SCI: Fixing a bunch of warnings; change 'intencity' -> 'intensity';
...
properly init a sciPalette via memset
svn-id: r44604
2009-10-04 11:59:29 +00:00
Martin Kiewitz
e2cc953a9f
SCI: removing unused variables from onControl
...
svn-id: r44596
2009-10-04 10:48:49 +00:00
Martin Kiewitz
3dbf54267b
SCI: onControl now uses gui classes
...
svn-id: r44595
2009-10-04 10:47:10 +00:00
Willem Jan Palenstijn
bce248cab6
SCI: Redraw edit controls when they change.
...
svn-id: r44576
2009-10-03 22:10:45 +00:00
Willem Jan Palenstijn
b9cdb1abb7
SCI: Merge new GUI code written by m_kiewitz.
...
This is a major rewrite of the graphics code. A slightly adapted
version of the old code is still available and currently the default.
The new code is selectable in sci.cpp, but is not yet finished.
svn-id: r44565
2009-10-03 20:49:18 +00:00
Filippos Karapetis
2d29625f0e
Removed an old (and now obsolete) workaround for KQ5
...
svn-id: r44507
2009-09-30 23:27:00 +00:00
Filippos Karapetis
30084d72a5
Added a new special reg_t, SIGNAL_REG, for signaling when an error occurs (usually), or to signal success in some special occasions
...
svn-id: r44505
2009-09-30 23:00:03 +00:00
Filippos Karapetis
f9296a6445
- Changed the unimplemented debug SCI kernel functions (InspectObj, ShowSends, ShowObjs, ShowFree, StackUsage and Profiler) to be dummy functions - we have our own debugger, and don't use these functions for debugging
...
- Removed the function number parameter from all kernel functions, as it's no longer needed, and removed the FAKE_FUNCT_NR hack
- Removed kUnknown() and kStub()
- Dummy/unknown kernel functions are no longer invoked, and a warning is shown instead, with the paremeters passed to them
Note: there is an evil hack used for debugging scripts in invoke_selector(), which probably no longer works now
svn-id: r44461
2009-09-29 14:24:07 +00:00
Walter van Niftrik
725377f090
SCI: Fix scrolling in SCI1 list controls.
...
svn-id: r44429
2009-09-27 23:06:39 +00:00
Willem Jan Palenstijn
33e9b0baf9
SCI: turn assert into warning, as it used in QfG2 char import
...
svn-id: r44400
2009-09-27 14:18:21 +00:00
Willem Jan Palenstijn
d3c1916384
SCI: Major string handling update.
...
All string access to segments should now work with both raw and non-raw
(reg_t) segments, using the new utility functions in segMan.
There will likely be regressions.
svn-id: r44388
2009-09-27 01:50:26 +00:00
Filippos Karapetis
180b3f1247
Create a define for the special "signal" offset used throughout the engine, and fixed the arbitrary 0 values from commit #44294 , set when some math functions do invalid calculations
...
svn-id: r44359
2009-09-25 16:15:57 +00:00
Max Horn
43da40996b
SCI: Change kAnimate to actually tail recurse
...
svn-id: r44238
2009-09-21 21:37:47 +00:00
Max Horn
5f440854b7
SCI: Add EngineState::_kernel member for convenience
...
svn-id: r44173
2009-09-17 17:00:36 +00:00
Max Horn
eb77efda78
SCI: Add a global getSciVersion() function and make use of it
...
svn-id: r44170
2009-09-17 16:50:53 +00:00
Max Horn
9651562e72
SCI: Rename WAS_FUNCT_NR to FAKE_FUNCT_NR; turn some #defines into enums
...
svn-id: r44169
2009-09-17 16:49:31 +00:00
Max Horn
730c7c9641
SCI: Get rid of the not_register() hack
...
svn-id: r44153
2009-09-17 13:22:00 +00:00
Max Horn
364640cfd5
SCI: Rename selector_map_t -> SelectorCache and _selectorMap -> _selectorCache
...
svn-id: r44152
2009-09-17 13:21:42 +00:00
Filippos Karapetis
e1de3d0f3f
Removed some unused variables from the engine state
...
svn-id: r44099
2009-09-15 07:59:48 +00:00
Max Horn
8ac3db0801
SCI: Rename SegManager::kernelDeref*() methods to SegManager::deref*()
...
svn-id: r44083
2009-09-14 13:27:09 +00:00
Max Horn
0e834d0b87
SCI: kernelDeref*() functions are now seSegmentManager methods
...
svn-id: r44082
2009-09-14 13:13:20 +00:00
Max Horn
c00edfb64f
SCI: Merge kernelDerefCharPtr and kernelDerefString and change it from a macro to a function
...
svn-id: r44081
2009-09-14 12:59:42 +00:00
Filippos Karapetis
8bf80d9584
Always disable the "Change Directory" button in the save/load menus, as we don't allow the engine to change the directory where saved games will be placed
...
svn-id: r44044
2009-09-13 00:08:17 +00:00
Filippos Karapetis
15cb36a7ee
Made is_object() a method of the segment manager
...
svn-id: r44042
2009-09-12 17:42:04 +00:00
Filippos Karapetis
358b5649ce
Removed the unused ASSERT()-related code and changed a warning where BREAKPOINT() was used to an error
...
svn-id: r44041
2009-09-12 17:31:29 +00:00
Filippos Karapetis
5cd538a1b3
Removed/replaced the gfx_pixmap_color struct
...
svn-id: r44017
2009-09-09 08:19:16 +00:00
Max Horn
d04b5d2c9b
SCI: Rename resManager -> resMan; segManager -> segMan
...
svn-id: r43980
2009-09-06 12:57:42 +00:00
Filippos Karapetis
d398c17f79
- Allow SCI games to set the cursor position when it's hidden once again
...
- Changed the message shown when the game tries to move the cursor off the screen bounds from a warning to a debug message, to avoid spam in games that do this behavior, e.g. the Camelot demo
svn-id: r43942
2009-09-04 15:40:15 +00:00
Filippos Karapetis
32af5eb3be
- Removed the gfx error defines. When resources are not found, or are corrupted, we should error out instead of piggy-banking an error flag to another function
...
- Do not try and set the position of the mouse cursor when it's hidden
svn-id: r43941
2009-09-04 15:04:13 +00:00
Filippos Karapetis
9381362277
Removed the bilinear and trilinear FreeSCI scalers, and only left the unfiltered scaler in (to be replaced by ScummVM's scaler code). We really don't need bilinear and trilinear filtered scaling in the engine, as ScummVM's filters already perform bilinear and trilinear filtered scaling, if requested
...
svn-id: r43938
2009-09-04 09:44:06 +00:00
Filippos Karapetis
f5d846d482
Removed the animation_granularity variable from the engine state (it never changes, and it's used in one place only)
...
svn-id: r43936
2009-09-04 07:21:51 +00:00
Filippos Karapetis
1bbab8f191
Some renaming:
...
getresourceManager -> getResourceManger
resourceManager -> resMan
segmentManager ->segMan
svn-id: r43908
2009-09-02 12:02:37 +00:00
Max Horn
b391f08b46
SCI: Renamed kernel_dereference_* to kernelDeref*, and added kernelDerefString
...
svn-id: r43907
2009-09-02 11:38:16 +00:00
Max Horn
6c44eafa97
SCI: funct_nr is not used in 99% of all opcodes -- hide it in those (to be removed eventually)
...
svn-id: r43905
2009-09-02 11:33:25 +00:00