277 Commits

Author SHA1 Message Date
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
abe8cf0625 Typo.
svn-id: r41054
2009-05-31 01:11:06 +00:00
Max Horn
70a04c8b51 SCI: Made vocab_version static again (a global static var is bad, but a really global var is worse); also clarified some FIXME comments that we want to avoid *any* non-const global var, no matter whether it is static or not
svn-id: r41045
2009-05-30 20:37:33 +00:00
Filippos Karapetis
15d5b8436e Removed the "sfx_debuglog" command. Sound debug messages are now shown if kDebugLevelSound is specified
svn-id: r41039
2009-05-30 17:53:12 +00:00
Filippos Karapetis
ecfb2e5b5d - Moved the print_port, segment_info and segment_kill console commands to console.cpp
- Removed the unused gfx driver debug flags

svn-id: r41036
2009-05-30 16:36:37 +00:00
Filippos Karapetis
69582f0179 Moved 3 more debug commands to console.cpp ("simkey", "segment_table" and "show_map") and removed the GFXWC macro. Some cleanup
svn-id: r41032
2009-05-30 14:30:39 +00:00
Filippos Karapetis
c7c9f05cac Removed/replaced BREAKPOINT
svn-id: r41025
2009-05-30 10:42:08 +00:00
Filippos Karapetis
b1997801da - Moved some debug code into console.cpp, adding 3 console commands: resource_types, sci0_palette and exit
- Removed the "man" command
- Removed the commands which set the SCI01 priority table flags and the crossblit alpha threshold (they're too specific, and not really useful anymore)
- Removed some leftover debug code from gfxop_clear_box()

svn-id: r41010
2009-05-29 17:19:39 +00:00
Filippos Karapetis
7d0c861506 Merged res_view0.cpp and res_view1.cpp
svn-id: r40997
2009-05-29 14:16:51 +00:00
Max Horn
813853ccc2 SCI: Converted several fprintf(stderr) calls to warning/error (the remaining fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations)
svn-id: r40993
2009-05-29 13:07:14 +00:00
Filippos Karapetis
e9444e2b93 - Rewrote kSetCursor to be a bit simpler to understand, and got rid of GF_SCI1_NEWSETCURSOR
- Removed the 3 mouse pointer view, loop and cell variables (and their 3 "save" versions) from the game state, as they're all actually not used anywhere
- Cleanup

svn-id: r40976
2009-05-29 08:25:42 +00:00
Filippos Karapetis
55b2cfa0ab Cleanup
svn-id: r40969
2009-05-28 22:26:20 +00:00
Filippos Karapetis
c50edc8c46 Merged some of the SCI1 and SCI1.1 view and loop drawing functions
svn-id: r40961
2009-05-28 15:15:14 +00:00
Max Horn
32975b25f4 SCI: cleanup
svn-id: r40959
2009-05-28 11:15:09 +00:00
Willem Jan Palenstijn
0b8412bcfe SCI: Make standard EGA palette a part of gfx_sci0_pic_colors.
This fixes regressions in at least SQ3 and Iceman from r40870

svn-id: r40952
2009-05-27 22:41:14 +00:00
Filippos Karapetis
c75bdbc8e9 - SQ5 floppy starts now
- Added a new console command, "room", which shows the current room

svn-id: r40943
2009-05-27 16:45:42 +00:00
Walter van Niftrik
de5ca1e472 SCI: Some small fixes for KQ6CD.
svn-id: r40898
2009-05-26 00:03:41 +00:00
Willem Jan Palenstijn
183c9e56ed SCI: Only let gfxop_set_color use priority/control if mask has their bits set.
This fixes a regression from r39089 where text in the KQ5(floppy) intro
was displayed behind trees.

svn-id: r40893
2009-05-25 19:48:52 +00:00
Filippos Karapetis
71cc92ab7f Fixed a nasty bug in the GUI code, which caused the windows in PQ3 and SCI1.1 games to be erased incorrectly
svn-id: r40889
2009-05-25 13:25:31 +00:00
Willem Jan Palenstijn
fd0578f151 SCI: reset system palette when loading a new PIC.
This improves the colours of background images, but is still partially
broken. The mouse cursor becomes transparent when changing scenes, and
there is a brief moment of palette corruption between scenes.

svn-id: r40870
2009-05-24 18:41:19 +00:00
Willem Jan Palenstijn
725ff24170 SCI: re-xlate pixmap when palette revision changed
svn-id: r40859
2009-05-24 12:56:06 +00:00
Willem Jan Palenstijn
a19c23ab7a SCI: add (unused) palette revisioning support
svn-id: r40838
2009-05-23 22:21:42 +00:00
Filippos Karapetis
39f9894ee5 Added a stub for SetVideoMode(), and fixed some of the palette glitches in the intro of KQ6 thanks to some comments by waltervn. Also, commented out the bounds rect in gfxr_pic_t, as it's currently unused
svn-id: r40808
2009-05-23 13:26:45 +00:00
Filippos Karapetis
3811df7aca Fixed the incorrectly placed views in the KQ6 intro, by reintroducing port bounds in the graphics resource manager and removing two relevant hacks
svn-id: r40803
2009-05-23 10:07:01 +00:00
Walter van Niftrik
36fe37443d SCI: Added support for KQ6 movies.
svn-id: r40774
2009-05-21 22:03:23 +00:00
Max Horn
bba91075bf removed trailing whitespaces
svn-id: r40742
2009-05-20 17:53:31 +00:00
Filippos Karapetis
5d942f9d70 Removed some redundant variables, and renamed some variables with strange names ("foo"?)
svn-id: r40727
2009-05-19 15:59:17 +00:00
Max Horn
8add60bf8c SCI: Cleanup/paranoia checks
svn-id: r40711
2009-05-19 00:02:10 +00:00
Walter van Niftrik
7c5fbf83f5 SCI: LSL6 invalid selector workaround is now always active, not just at
startup. Added support for mirrored pic drawing.

svn-id: r40648
2009-05-17 13:37:54 +00:00
Filippos Karapetis
87e8f94fde - Moved all the files out of /sci/scicore and into /sci
- Moved /scicore/sciconsole.h into /engine, and renamed /engine/scriptconsole.cpp to /engine/sciconsole.cpp

svn-id: r40608
2009-05-15 14:07:45 +00:00
Filippos Karapetis
78bf8c490d Reverted the SQ5 change introduced with commit #40574, as this makes the mouse cursor invisible in games which have multicolored cursors
svn-id: r40605
2009-05-15 12:41:27 +00:00
Filippos Karapetis
61d9a42c56 Fixed the detection entry for SQ3 Amiga, and added a special case for cursor hiding in SQ5
svn-id: r40574
2009-05-14 21:51:36 +00:00
Willem Jan Palenstijn
185eeb4695 Only load used palette entries with SCI1/11
svn-id: r40571
2009-05-14 21:34:30 +00:00
Filippos Karapetis
443aacee79 Added a parameter to the graphics resource manager to determine if the running SCI1 game is VGA or not (better than modifying the detected SCI resource version)
svn-id: r40566
2009-05-14 19:33:03 +00:00
Walter van Niftrik
9604e99736 SCI: Fixes a crash when loading SCI1.1 views without palette.
svn-id: r40545
2009-05-13 23:08:36 +00:00
Johannes Schickel
f0182121f7 Fix some variable may be used uninitialized warnings.
svn-id: r40528
2009-05-13 18:12:17 +00:00
Filippos Karapetis
e940bcff23 - Simplified SCI version detection a bit and clarified the different version feature flags (not used yet)
- Removed the version verification functions (they were only used for two specific cases, but the SCI executable reader is able to detect the exact SCI game version anyway, so there is no point in having these)
- Removed the empty GameFlags structure and replaced it with a 32-bit integer instead

svn-id: r40524
2009-05-13 16:52:41 +00:00
Max Horn
0255cd0213 SCI: Removed sci_memory.h/.cpp
svn-id: r40514
2009-05-12 23:30:10 +00:00
Max Horn
7c75e8e2ef SCI: Reduced header deps
svn-id: r40451
2009-05-11 13:31:17 +00:00
Max Horn
38c48b4f6e SCI: Fixed palette regression from rev 40388
svn-id: r40432
2009-05-10 19:18:19 +00:00
Max Horn
e933c02fd2 SCI: Folded line.h and crossblit.h into gfx_support.cpp
svn-id: r40389
2009-05-08 16:03:55 +00:00
Max Horn
0ebd41ac59 SCI: cleanup
svn-id: r40388
2009-05-08 16:03:14 +00:00
Max Horn
de114d3d52 SCI: Got rid of code for endian adjusting pixmaps
svn-id: r40387
2009-05-08 16:02:22 +00:00
Max Horn
527463dea2 SCI: turn the various gfx filters from #define hacks into template funcs
svn-id: r40386
2009-05-08 16:01:25 +00:00
Max Horn
e34c6316c6 SCI: Replaced gfx_driver_t::set_palette and install_palette by directly invoking their OSystem counterparts
svn-id: r40385
2009-05-08 16:00:39 +00:00
Max Horn
dc29c404a7 SCI: Work around an 'Array used after being disposed' bug that occurs when a GfxVisual gets disposed
svn-id: r40327
2009-05-05 12:33:11 +00:00
Max Horn
e6a7b8ef34 SCI: Renamed text_fragment_t -> TextFragment and changed TextHandle to store the text fragments and pixmaps in Common::Arrays
svn-id: r40178
2009-04-28 12:32:59 +00:00
Max Horn
6322478508 SCI: renamed gfx_text_handle_t -> TextHandle; changed some string code to use Common::String
svn-id: r40162
2009-04-27 14:21:39 +00:00
Max Horn
5881abb213 SCI: Removed unused vars; doxygenified some comments; cleanup
svn-id: r40159
2009-04-27 12:29:51 +00:00
Max Horn
356288ce8d SCI: Rewrote dirty rect code to use Common::List
svn-id: r40156
2009-04-27 11:12:25 +00:00