aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
AgeCommit message (Collapse)Author
2009-04-24SCI: Some const corrections, removed dead stuff, cleanupMax Horn
svn-id: r40101
2009-04-23Changed the "Intersections" opcode to "MoveCursor", after verifying it with ↵Filippos Karapetis
Greg's SCI implementation and discussing it with waltervn. Also, the cursor hotspot is now fixed for Eco Quest 1 and probably SCI11 games as well (e.g. the game menu in KQ6 is now working) svn-id: r40096
2009-04-23The mouse cursor is now working in Eco Quest 1, though the hotspot is still ↵Filippos Karapetis
wrong. Many thanks to waltervn for his findings on this. svn-id: r40095
2009-04-21- Fixed some of the GUI graphical glitches in SCI1 games (e.g. the inventory ↵Filippos Karapetis
screen in several SCI1 games and the menus in PQ3). It's still not right, but it's better than nothing - Removed the confusing ADD_TO_CURRENT_BG_WIDGETS and ADD_TO_CURRENT_FG_WIDGETS defines, which had the same functionality svn-id: r40058
2009-04-21Restored the ability to change the active port bound, by moving it inside ↵Filippos Karapetis
gfx_state_t (it makes much more sense for it to be there, instead of inside user-defined settings). Placed notes inside gfxr_draw_pic01() and gfxr_draw_pic11() for the usage of the current titlebar size in there svn-id: r40057
2009-04-09SCI: Clarify hack in kgraphics.cpp based on what lars wrote on scummvm-develMax Horn
svn-id: r39905
2009-04-07SCI: Swapped x and y parameters of IsItSkip. Added IsItSkip to kernel table.Walter van Niftrik
svn-id: r39894
2009-04-03Removed leftover chrono-related code (refer to commit #37721 for the changes ↵Filippos Karapetis
to kgraphics.cpp) svn-id: r39820
2009-04-03Removed the non-working Chrono port code, after discussing with LarsFilippos Karapetis
svn-id: r39819
2009-04-02pic_port_bounds was only set from command-line parameters it seems, so it's ↵Filippos Karapetis
safe to put it together with the rest of the options svn-id: r39800
2009-04-01- Wrapped all the code for custom graphics options around a ↵Filippos Karapetis
CUSTOM_GRAPHICS_OPTIONS define. Most of these options don't work in 256-color mode, plus there is currently no way to actually set/change them somehow (other than modifying the code) - Added a FIXME for the abuse of the pic_port_bounds graphics option - it's actually set by the game itself in kSetPort() - Added some test code for setting palette intensity in KPalette() (currently disabled) svn-id: r39794
2009-03-29Added stubs for the missing palette effects in kPalette()Filippos Karapetis
svn-id: r39744
2009-03-29Added a stub for the palette fadeout/fadein effect, so that we remember it's ↵Filippos Karapetis
currently missing svn-id: r39743
2009-03-29Fixed the colors of the widgets in KQ5's options menuFilippos Karapetis
svn-id: r39737
2009-03-29Fixed the colors of the window frames in KQ5Filippos Karapetis
svn-id: r39734
2009-03-29Eco Quest 1 continues after the intro nowFilippos Karapetis
svn-id: r39731
2009-03-26Added a note about the potential invalid rectangles created when drawing linesFilippos Karapetis
svn-id: r39704
2009-03-25- Renamed gfx/sci_widgets.* to gfx/gfx_gui.*, as these files contain GUI ↵Filippos Karapetis
elements mostly, like windows and status bars - Moved kWindowAutoRestore from gfx_widgets.h to gfx_gui.h svn-id: r39687
2009-03-25Changed some flags to enumsFilippos Karapetis
svn-id: r39685
2009-03-24SCI: Changed some char* into Common::StringMax Horn
svn-id: r39663
2009-03-23- Moved palette initialization inside the graphics resource managerFilippos Karapetis
- The static palette is no longer needlessly referenced directly outside the graphics resource manager - Moved the SCI interpreter version inside the graphics resource manager, instead of gfx_state_t svn-id: r39626
2009-03-22Further objectification of the graphics resource managerFilippos Karapetis
svn-id: r39621
2009-03-18Changed abs_rect_t to Common::RectFilippos Karapetis
svn-id: r39518
2009-03-17Further objectification of the graphics resource managerFilippos Karapetis
svn-id: r39499
2009-03-17Started objectifying the graphics resource manager (refer to patch #2689887)Filippos Karapetis
svn-id: r39492
2009-03-17Renamed some defines:Filippos Karapetis
- FREESCI_CURRENT_SAVEGAME_VERSION, FREESCI_MINIMUM_SAVEGAME_VERSION -> CURRENT_SAVEGAME_VERSION, MINIMUM_SAVEGAME_VERSION (saved games are not compatible with FreeSCI's ones anymore) - _K_VIEW_SIG_FLAG_FREESCI_STOPUPD -> _K_VIEW_SIG_FLAG_STOPUPD (like the rest of the flags) - Removed FREESCI_KFUNCT_GLUTTON (unused) svn-id: r39478
2009-03-16Replaced "xl" with "width" and "y1" with "height" in places where rectangles ↵Filippos Karapetis
are used svn-id: r39435
2009-03-14Changed the "internal" variable inside gfxr_pic_t to priorityTable (cause ↵Filippos Karapetis
that's what it is), and changed its type to int * to avoid unneeded casts svn-id: r39375
2009-03-12SCI: Removed most uses of the 'inline' keyword. It is usually better to let ↵Max Horn
the compiler figure out what to inline. As it is, most of these looked as if they were randomly placed ;) svn-id: r39352
2009-03-09Fix uninitialized color meta-values.Willem Jan Palenstijn
This fixes holes in text boxes in Iceman, among other things. svn-id: r39274
2009-03-08Use new Palette class to manager pixmap palettes.Willem Jan Palenstijn
There are some remaining regressions with text colour in SCI1 games, but overall it should fix more than it breaks. svn-id: r39242
2009-03-07SCI: Reduced header interdependencies some moreMax Horn
svn-id: r39202
2009-03-03SCI1: Improved color mapping when drawing line/box/text. Text with ↵Greg Frieger
transparent background now displays correctly. svn-id: r39089
2009-03-01Fixed windows and text drawing problem in SCI1Greg Frieger
svn-id: r39000
2009-02-28SCI: Renamed ResourceManager::sci_version to _sciVersion, to avoid var ↵Max Horn
shadowing warnings; some other tweaks svn-id: r38984
2009-02-28SCI: Renamed some kernel types and general cleanupJordi Vilalta Prat
svn-id: r38961
2009-02-27SCI: Renamed include/engine.h to engine/state.h; added a corresponding .cpp ↵Max Horn
file with the EngineState constructor svn-id: r38921
2009-02-27SCI: Moved almost all files from include/ to other dirs; only ↵Max Horn
include/engine.h remains svn-id: r38920
2009-02-26cleanupMax Horn
svn-id: r38891
2009-02-25Reverted my wrong commit #38870. Most of the key codes are handled by the ↵Filippos Karapetis
engine itself, however there are cases where they are handled by the game scripts, e.g. in save/load dialogs. The arrow keys in the save/load dialogs should work properly again. The numpad keys still look to be broken by some other commit svn-id: r38886
2009-02-24Replaced some of the internal SCI scan codes with the ones from ScummVMFilippos Karapetis
svn-id: r38870
2009-02-24SCI: Replaced gfxop_usleep by gfxop_sleep (taking millisecs instead of ↵Max Horn
microsecs) svn-id: r38854
2009-02-24SCI: Renamed gfx/gfx_operations.h to gfx/operations.h (matching the source ↵Max Horn
file); moved include/sci_widgets.h to gfx/ (matching location of source file); renamed gfx/widgets.cpp to gfx/gfx_widgets.cpp (matching the header) svn-id: r38852
2009-02-24SCI: Moved kernel.h and kdebug.h from include/ to engine/; untangled header ↵Max Horn
deps some more svn-id: r38833
2009-02-22Whitespace cleanupJordi Vilalta Prat
svn-id: r38783
2009-02-21SCI: Convert the segment manager into a classJordi Vilalta Prat
svn-id: r38767
2009-02-21multiply before dividing to improve timer resolutionWillem Jan Palenstijn
svn-id: r38765
2009-02-21SCI: Got rid of include/scitypes.hMax Horn
svn-id: r38746
2009-02-21SCI: Renamed include/gfx_*.h to gfx/gfx_*.h and likewise for sfx header filesMax Horn
svn-id: r38735
2009-02-21use OSystem::getMillis() for last_wait_time and get rid of game_start_timeAndre Heider
svn-id: r38701