Commit Graph
86814 Commits
Author SHA1 Message Date
Johannes Schickel 18940ffd46 Fix bug in drawShape.
svn-id: r41964
2009-06-29 20:17:10 +00:00
Johannes Schickel a12b4e7002 Fix LoL cursor in DOS version.
svn-id: r41963
2009-06-29 20:16:59 +00:00
Johannes Schickel e15502d381 Fix bug in drawShape, which caused invisibility in Kyra1 to be displayed incorrectly.
svn-id: r41962
2009-06-29 19:02:15 +00:00
Johannes Schickel 3919bd2aed Fix palette regression caused by r41949.
svn-id: r41961
2009-06-29 18:49:28 +00:00
Johannes Schickel cc0b30370e Fix kyra2/kyra3 mouse cursor related regressions, introduced with r41959.
svn-id: r41960
2009-06-29 18:49:17 +00:00
Johannes Schickel 67f69bcaf2 - Get rid of code duplication for mouse cursor setup
- Fix mouse cursor colors in LoL PC98
(This commit might introduce regressions, since it changes the key color the mouse cursor uses)

svn-id: r41959
2009-06-29 18:00:18 +00:00
Johannes Schickel c810f9645a Removed obsolete TODOs in HoF code.
svn-id: r41958
2009-06-29 17:26:56 +00:00
Johannes Schickel 11dafd2ded Resolved some TODOs in Kyra3 code.
svn-id: r41957
2009-06-29 17:26:43 +00:00
Johannes Schickel fbefe917f2 Removed more obsolete TODO messages.
svn-id: r41956
2009-06-29 17:06:17 +00:00
Johannes Schickel c2d13aab2a Update the screen animations while dropping items in Hand of Fate.
svn-id: r41955
2009-06-29 17:06:00 +00:00
Johannes Schickel 31691eb6bf Removed some obsolete TODOs.
svn-id: r41954
2009-06-29 17:05:49 +00:00
Johannes Schickel 179a822b93 Adapted various code parts to use Palette::fill.
svn-id: r41953
2009-06-29 16:49:53 +00:00
Johannes Schickel 07cdbd273d Add a "fill" method to Palette.
svn-id: r41952
2009-06-29 16:49:38 +00:00
Johannes Schickel bfe8ec6d66 Replaced some raw palette loads.
svn-id: r41951
2009-06-29 16:49:26 +00:00
Johannes Schickel 80a4a2dd8e Cleanup GUI_HoF::setupPalette.
svn-id: r41950
2009-06-29 16:49:14 +00:00
Johannes Schickel 6f46b69236 Cleanup KyraEngine_MR::updateCharPal.
svn-id: r41949
2009-06-29 16:08:39 +00:00
Johannes Schickel 3b7f11d4cc Change LoLEngine::generateFlashPalette to take Palette objects as parameters.
svn-id: r41948
2009-06-29 16:08:28 +00:00
Johannes Schickel c09985db2c Change Screen_LoL::loadSpecialColors to take an Palette object as parameter.
svn-id: r41947
2009-06-29 16:08:16 +00:00
Johannes Schickel 3bde2647b6 Change raw palette read to Screen::loadPalette call.
svn-id: r41946
2009-06-29 16:08:00 +00:00
Johannes Schickel 0bf94cb194 Chang Palette parameter of LolEngine::setPaletteBrightness to be const.
svn-id: r41945
2009-06-29 16:07:46 +00:00
Johannes Schickel bf81e432e1 Change LoLEngine::generateBrightnessPalette to take Palette objects as parameters.
svn-id: r41944
2009-06-29 16:06:31 +00:00
Johannes Schickel f7bbd359bb Changed LoLEngine::setPaletteBrightness to take an Palette object.
svn-id: r41943
2009-06-29 16:06:18 +00:00
Johannes Schickel c72dac8dd0 Change LoLEngine::processMagicIce to use Palette objects internally.
svn-id: r41942
2009-06-29 16:06:02 +00:00
Johannes Schickel b12496d1dd Modified Palette::load*Palette definition.
svn-id: r41941
2009-06-29 16:05:50 +00:00
Johannes Schickel beca7b16c4 Indentation fix.
svn-id: r41940
2009-06-29 12:33:47 +00:00
Torbjörn Andersson d120ca8f5c For consistency, use upper-case letter in hex constant.
svn-id: r41938
2009-06-28 22:20:28 +00:00
Max Horn 4e17f7251d Fix PSP port
svn-id: r41934
2009-06-28 21:04:24 +00:00
Max Horn d3ca315761 PS2: Don't overload fillScreen with a dummy, just use the inherited version
svn-id: r41933
2009-06-28 19:58:30 +00:00
Max Horn bb28ed7b7a Changed OSystem::setWindowCaption to expect ISO LATIN 1 encoded input;
also intentionally broke WinCE and Symbian ports (in an obvious way that
can be undo by commenting out some text) -- hopefully this will get the
maintainers' attention during the next release cycle, unlike my emails

svn-id: r41932
2009-06-28 19:58:11 +00:00
Max Horn a882a6f467 GUI: Replaced ThemeParser::_drawFunction hashmap by a static function getDrawingFunctionCallback which maps strings to draw funcs
svn-id: r41931
2009-06-28 19:57:27 +00:00
Max Horn 531e7a8c78 Silenced the reamining warnings reported in patch #2684986 (gcc warnings with -DFORTIFY_SOURCE=2 -fstack-protector)
svn-id: r41930
2009-06-28 19:56:58 +00:00
Joost Peters 53c431dc97 change link order in .spec file to produce working binaries when building using the configure script
svn-id: r41929
2009-06-28 17:51:53 +00:00
Denis Kasak 6a78781889 Added an offset parameter to Script::run() so we can specify where to start the GPL program execution. Also, the init script for the dragon object is now run inside Game::Game().
svn-id: r41928
2009-06-28 16:28:16 +00:00
Denis Kasak f61b2d289d Changed Script::run() to accept a GPL2Program struct instead of a byte pointer and a length. Also, Script::run() now executes the GPL program until a gplend instruction rather than to the end of the whole program. Modified GameObject according to the new changes.
svn-id: r41927
2009-06-28 16:19:10 +00:00
Denis Kasak 948bf2cfcc Removed disassembling of the GPL script for the first game location from Draci::init().
svn-id: r41926
2009-06-28 15:28:20 +00:00
Denis Kasak d28bbe51bf Added struct GameObject (such structs are stored in OBJEKTY.DFW and used for in-game objects' info). Added Game::loadObject() for loading such objects into memory. Made Game's constructor load the object for the main hero.
svn-id: r41925
2009-06-28 13:10:53 +00:00
Florian Kagerer 9b27e2b97c LOL: add workaround to fix map text display when the language is set to French
svn-id: r41922
2009-06-27 16:48:47 +00:00
Denis Kasak 1e70f25fcf Added Script instance to DraciEngine. Restored disassembling of a demo script on engine startup (previously via gpldisasm(), now via _script->run()).
svn-id: r41921
2009-06-27 15:26:33 +00:00
Denis Kasak 4c524f5e0a Renamed Script::gpldisasm() to Script::run().
svn-id: r41920
2009-06-27 15:19:03 +00:00
Denis Kasak 97dde5e1ed Put all GPL interpreter related routines inside a Script class.
svn-id: r41919
2009-06-27 15:17:26 +00:00
Denis Kasak 2e30fae261 Renamed gpldisasm.* to script.* in anticipation of using it as a script intepreter.
svn-id: r41918
2009-06-27 15:00:14 +00:00
Florian Kagerer 7d876f8a19 LOL: fixed regression
svn-id: r41917
2009-06-27 13:15:47 +00:00
Florian Kagerer a7cb4362b4 LOL: cleanup
svn-id: r41916
2009-06-27 12:36:12 +00:00
Kari Salminen 49dd58de45 Name Operation Stealth's global variables 251 and 252 and init them in main loop.
These are used as a sort of a backup for the
mouse position (x, y) variables 249 and 250.

Future Wars's VAR_MOUSE_Y_MODE and Operation Stealth's
VAR_MOUSE_X_POS_2ND (251) clash and that's possibly
why executePlayerInput currently works incorrectly
with Operation Stealth. More reverse engineering
is needed...

svn-id: r41915
2009-06-27 12:26:26 +00:00
Willem Jan Palenstijn 6f64432486 SCI: Use obtained instead of requested PixelFormat
svn-id: r41912
2009-06-27 10:53:21 +00:00
Jody Northup 39e957d313 Enabled RGB color support in SCI engine, corrected SCI engine's initGraphics call for modified API
svn-id: r41911
2009-06-27 08:16:21 +00:00
Norbert Lange cf351dffe6 Modified macro-,patter-,track-step functions to loop aslong they are supposed to execute. (instead of doing that loop "outside").
Added "addBeginn" Effect, not used by MI but simple to implemt.

svn-id: r41910
2009-06-27 07:07:20 +00:00
Jody Northup 853aec05ba changed initGraphics, and OSystem::initSize to take Graphics::PixelFormat * parameters instead of Graphics::PixelFormat parameters, to save unnecessary pixelformat initialization if ENABLE_RGB_COLOR is not set.
svn-id: r41909
2009-06-27 05:58:44 +00:00
Denis Kasak 746e2214ee Extended Game to load all info from INIT.DFW (general game info, dialog offsets, variables, item status, object status).
svn-id: r41908
2009-06-27 05:10:24 +00:00
Denis Kasak 0430939006 Added Game's constructor. Added the Person struct and made Game constructor read in the list of persons from INIT.DFW. Added Game instance to DraciEngine.
svn-id: r41907
2009-06-27 01:04:24 +00:00