aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2009-10-07SCI: set default EGA palette to 0, if no parameter is actually given us. ↵Martin Kiewitz
Fixes lsl2, kq4, sq3, etc. svn-id: r44743
2009-10-07SCI/newgui: kSetCursor (show, hide, pos, shape) implementedMartin Kiewitz
svn-id: r44734
2009-10-07SCI: SciGuiCursor class added, cleanup, OSystem removed from SciGui constructorMartin Kiewitz
svn-id: r44730
2009-10-07SCI: removed r44595, sierra sci really does behave like Common::Rect, no ↵Martin Kiewitz
need for +1 svn-id: r44725
2009-10-06SCI/newgui: kHiLite supportMartin Kiewitz
svn-id: r44701
2009-10-05Moved the cursor movement code in the GUIFilippos Karapetis
svn-id: r44664
2009-10-05Lines are no longer treated as fake rectangles and are shown correctly againFilippos Karapetis
svn-id: r44663
2009-10-05SCI/newgui: kDrawControl on icon implementedMartin Kiewitz
svn-id: r44658
2009-10-05- Renamed GUI -> Gui and capitalized as appropriate (e.g. SciGUIwindowMgr -> ↵Filippos Karapetis
SciGuiWindowMgr) - Renamed "cell" -> "cel" svn-id: r44649
2009-10-04SCI: Really remove sci/gui/gui.h include from engine/state.hMax Horn
svn-id: r44644
2009-10-04SCI/newgui: implemented kPalette / set intensityMartin Kiewitz
svn-id: r44631
2009-10-04SCI: Rename EngineState::segMan to _segManMax Horn
svn-id: r44629
2009-10-04SCI/gui: renaming...Martin Kiewitz
svn-id: r44618
2009-10-04SCI: kAddToPic, kAnimate and kSetNowSeen transferred to SciGUI32, not yet ↵Martin Kiewitz
implemented in newgui svn-id: r44606
2009-10-04SCI: Fixing a bunch of warnings; change 'intencity' -> 'intensity';Max Horn
properly init a sciPalette via memset svn-id: r44604
2009-10-04SCI: removing unused variables from onControlMartin Kiewitz
svn-id: r44596
2009-10-04SCI: onControl now uses gui classesMartin Kiewitz
svn-id: r44595
2009-10-03SCI: Redraw edit controls when they change.Willem Jan Palenstijn
svn-id: r44576
2009-10-03SCI: Merge new GUI code written by m_kiewitz.Willem Jan Palenstijn
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-09-30Removed an old (and now obsolete) workaround for KQ5Filippos Karapetis
svn-id: r44507
2009-09-30Added a new special reg_t, SIGNAL_REG, for signaling when an error occurs ↵Filippos Karapetis
(usually), or to signal success in some special occasions svn-id: r44505
2009-09-29- Changed the unimplemented debug SCI kernel functions (InspectObj, ↵Filippos Karapetis
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-27SCI: Fix scrolling in SCI1 list controls.Walter van Niftrik
svn-id: r44429
2009-09-27SCI: turn assert into warning, as it used in QfG2 char importWillem Jan Palenstijn
svn-id: r44400
2009-09-27SCI: Major string handling update.Willem Jan Palenstijn
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-25Create a define for the special "signal" offset used throughout the engine, ↵Filippos Karapetis
and fixed the arbitrary 0 values from commit #44294, set when some math functions do invalid calculations svn-id: r44359
2009-09-21SCI: Change kAnimate to actually tail recurseMax Horn
svn-id: r44238
2009-09-17SCI: Add EngineState::_kernel member for convenienceMax Horn
svn-id: r44173
2009-09-17SCI: Add a global getSciVersion() function and make use of itMax Horn
svn-id: r44170
2009-09-17SCI: Rename WAS_FUNCT_NR to FAKE_FUNCT_NR; turn some #defines into enumsMax Horn
svn-id: r44169
2009-09-17SCI: Get rid of the not_register() hackMax Horn
svn-id: r44153
2009-09-17SCI: Rename selector_map_t -> SelectorCache and _selectorMap -> _selectorCacheMax Horn
svn-id: r44152
2009-09-15Removed some unused variables from the engine stateFilippos Karapetis
svn-id: r44099
2009-09-14SCI: Rename SegManager::kernelDeref*() methods to SegManager::deref*()Max Horn
svn-id: r44083
2009-09-14SCI: kernelDeref*() functions are now seSegmentManager methodsMax Horn
svn-id: r44082
2009-09-14SCI: Merge kernelDerefCharPtr and kernelDerefString and change it from a ↵Max Horn
macro to a function svn-id: r44081
2009-09-13Always disable the "Change Directory" button in the save/load menus, as we ↵Filippos Karapetis
don't allow the engine to change the directory where saved games will be placed svn-id: r44044
2009-09-12Made is_object() a method of the segment managerFilippos Karapetis
svn-id: r44042
2009-09-12Removed the unused ASSERT()-related code and changed a warning where ↵Filippos Karapetis
BREAKPOINT() was used to an error svn-id: r44041
2009-09-09Removed/replaced the gfx_pixmap_color structFilippos Karapetis
svn-id: r44017
2009-09-06SCI: Rename resManager -> resMan; segManager -> segManMax Horn
svn-id: r43980
2009-09-04- Allow SCI games to set the cursor position when it's hidden once againFilippos Karapetis
- 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- Removed the gfx error defines. When resources are not found, or are ↵Filippos Karapetis
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-04Removed the bilinear and trilinear FreeSCI scalers, and only left the ↵Filippos Karapetis
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-04Removed the animation_granularity variable from the engine state (it never ↵Filippos Karapetis
changes, and it's used in one place only) svn-id: r43936
2009-09-02Some renaming:Filippos Karapetis
getresourceManager -> getResourceManger resourceManager -> resMan segmentManager ->segMan svn-id: r43908
2009-09-02SCI: Renamed kernel_dereference_* to kernelDeref*, and added kernelDerefStringMax Horn
svn-id: r43907
2009-09-02SCI: funct_nr is not used in 99% of all opcodes -- hide it in those (to be ↵Max Horn
removed eventually) svn-id: r43905
2009-09-01- Moved the Sierra game ID conversion code inside game.cpp, so that any ↵Filippos Karapetis
game-specific workarounds are tested against ScummVM IDs - Added detection for the EcoQuest 1 demo in the fallback detector - Partially reverted my previous "fix" for EcoQuest 1 CD, and turned it into a script-specific hack for that game, for now - Added handling of kDisposeScript calls made with 2 parameters, e.g. in KQ5CD and others (still untested, haven't found a test case) svn-id: r43887
2009-09-01Changed an error to a warning, as it occurs at the beginning of EcoQuest 1 ↵Filippos Karapetis
CD and doesn't seem to have any side effects svn-id: r43876